Loading ...
Loading ...
Build and backtest your first options strategy in under 5 minutes
Welcome to GreeksLab - a platform for building and backtesting options trading strategies. This guide will walk you through creating complex multi-leg strategies, setting up entry and exit rules, and running your first backtest.
After registering your account, you'll be taken to the list of strategies. To create a new strategy, click the "New Strategy" button.
To get you started, whenever you create a new strategy we generate a default strategy for you. You can edit it to your liking. A strategy consists of backtest settings and one or more position templates. To run a backtest, you need at least one position template with a defined options combo, along with entry and exit conditions.
First, give your strategy a descriptive name. Click on the strategy name to edit it. A good name helps you identify a strategy later when you have multiple strategies.
Configure the backtest parameters to define how the strategy will be evaluated against historical data:
A position template is the core building block of a strategy. It defines the structure and logic of the trades the strategy will simulate.
Each position template specifies:
A strategy may include multiple position templates, enabling the backtest to simulate several position setups within a single run.
Each leg represents a single option contract that the backtester will select and trade at the moment of execution. The leg definition includes the following components:
Call or PutLong (buy) or Short (sell)Each position can include multiple legs. A leg can have multiple linked legs to define relative strike spacing.
Entry rules define the conditions under which a position is opened. Each entry rule consists of:
Open PositionMultiple entry rules can be added, but only the first rule whose conditions are met will trigger on any given day.
The Open Position action includes a Multiplier setting. The multiplier scales the entire position template — for example, a multiplier of 2 will double all leg quantities defined in the template.
Management rules define how positions are managed while they are open. Each rule consists of:
Close PositionClose LegsRoll LegExamples of common management rules:
Unlike entry rules, multiple management rules can execute. Rules are evaluated in priority order, from top to bottom. Drag-and-drop can be used to reorder them.
Before running the backtest, review the configured strategy.
Once configuration is complete, click the Run Backtest button. The system will begin processing and automatically redirect to the results page, where detailed performance metrics will be displayed as they are calculated.
The backtest results page is organized into several tabs, each designed to provide detailed insights into the strategy's performance.
Congratulations! You've built your first strategy, run a backtest, and explored the results. Now you can:
Be sure to check out our other documentation sections for more advanced concepts: