Backtesting
Backtesting is the process of simulating a trading strategy using historical market data. It allows you to evaluate the effectiveness of your logic and understand its historical performance metrics—such as win rate, drawdown, and total return—before committing real capital in a live environment.
In the platform, backtesting is offered in two powerful formats: Realtime Backtest and Comprehensive Backtest.
1. Realtime Backtest
The Realtime Backtest is designed for instant feedback as you actively build or refine your strategy on the canvas.
- Immediate Validation: As you adjust your logic blocks or indicator periods, the Realtime Backtest allows you to see how those changes impact performance immediately.
- Visual Integration: It often overlays trade signals directly onto the chart, allowing you to visually inspect entries and exits against historical price action.
- Purpose: Best used for rapid prototyping and fine-tuning individual strategy components.
2. Comprehensive Backtest
The Comprehensive Backtest is a deeper, more robust simulation designed for final strategy validation.
- Extensive Data: Evaluates your strategy over a much larger historical dataset, spanning months or years, depending on the selected timeframe.
- Detailed Analytics: Provides an in-depth performance report, including:
- Equity Curve: A visual representation of your account balance over time.
- Drawdown Analysis: Measures the largest peak-to-trough decline in your portfolio.
- Trade Statistics: Detailed breakdown of average win/loss, profit factor, and recovery factor.
- Purpose: Best used to confirm that a strategy is robust enough to handle various market cycles (bull, bear, and sideways) before deployment.
Why Backtest?
Using these tools helps traders transition from intuition-based trading to data-driven execution:
- Risk Management: Identify potential pitfalls and high-drawdown periods before they happen in real-time.
- Logic Optimization: Discover which indicator settings (e.g., a 14-period vs. a 20-period RSI) yield the best historical results.
- Confidence Building: Gain a statistical understanding of how your strategy behaves, helping you stay disciplined during live market volatility.
Note: While backtesting is a vital tool, historical performance is not a guarantee of future results. Always consider market slippage and commission costs when evaluating your results.