Getting Started
When the Backtest Widget is opened, you will see a prompt to select a strategy. Click Select Strategy or Open Strategy to:- Choose a built-in strategy
- Open an existing custom strategy
- Create a new strategy
Using Built-in Strategies
The widget includes a library of ready-to-use strategies such as:- ADX Breakout Strategy
- MACD Strategy
- Moving Average Cross
- RSI Strategy
- Price Channel Strategy
- Consecutive Up/Down Strategy
- Inside Bar / Outside Bar Strategies
- Open the strategy selector
- Choose a strategy from the Built-in section
- Run the backtest
- Learning how strategy logic works
- Benchmarking performance
- Comparing behavior across instruments and timeframes
Creating a Custom Strategy
To create your own strategy:- Open the strategy selector
- Click Create New Strategy
- The Indie editor will open
- Define your strategy logic
Strategy Settings
Each strategy includes configurable inputs. Typical parameters may include:- Initial Capital
- Commission value and type
- Leverage
- Risk-free rate
- Order size and order size unit
- Market order type
- Intrabar execution rules
- Strategy-specific logic inputs (periods, thresholds, multipliers, etc.)
Main Performance Overview
After running a strategy, the Backtest Widget provides a structured performance summary.Core Metrics
- Total P&L
- Win Rate
- Profit Factor
- Total Trades
- Wins / Losses
- Average Trade
- Expectancy
- Risk–Reward Ratio
Capital & Returns
This section summarizes capital progression:- Initial Capital
- Final Capital
- Realized P&L
- Unrealized P&L
- Annualized Return
- Buy & Hold Return
- Average Monthly Return
- Minimum / Maximum Equity
Risk & Volatility
Risk metrics help evaluate downside exposure:- Max Drawdown
- Average Drawdown
- Number of Drawdowns
- Max Drawdown Duration
- Sharpe Ratio
Volatility & Recovery
Additional recovery and stability indicators:- Sortino Ratio
- Calmar Ratio
- Daily Standard Deviation
- Daily Value at Risk (95% / 99%)
- Annualized Volatility
- Average Recovery Time
- Maximum Recovery Time
Trade Quality
Trade-level quality metrics include:- Expectancy
- Risk–Reward Ratio
- Profit Factor
- Best Trade Net P&L
- Worst Trade Net P&L
- Commission-to-Profit Ratio
Trade Analysis
The Trades tab provides a detailed breakdown:- Trade ID and type (Long / Short)
- Entry and exit timestamps
- Duration
- Individual trade P&L
- Cumulative P&L
- Drawdown and run-up
Orders Log
The Orders tab displays:- Order ID
- Order type (Market / Limit / Stop)
- Price
- Quantity
- Exposure
- Fee
Visual Components
The widget also provides:- Equity curve
- Drawdown chart
- Position activity
- Trade distribution statistics
Workflow Integration
The Backtest Widget is designed to work together with:- Charts – to visually validate entries and exits
- IDE – to develop and refine strategy logic
- Watchlist – to test strategies across multiple instruments
The Backtest Widget transforms your workspace into a complete strategy validation environment — combining execution logic, risk diagnostics, and performance analytics in one unified interface.