Backtest
Use Backtest in FYERS Automate to evaluate how a trading strategy would have performed using historical market data before deploying it in live markets.
Backtest simulates the execution of an automation over a selected historical period using its configured Triggers, Conditions, Actions, schedule and order settings. You can review the results, identify areas for improvement and compare different versions of a strategy.
Historical results are for analysis only. Actual trading results may differ because of market conditions, liquidity, slippage, order execution and other factors.
Learn more about Backtesting in FYERS Automate.
Use Backtest to:
-
Test an automation using historical market data.
-
Evaluate how configured Triggers, Conditions and Actions would have worked.
-
Review the strategy across a selected historical period.
-
Identify gaps in the trading logic.
-
Refine entry, exit and risk-management rules.
-
Compare strategy performance before deploying it live.
Backtest helps you study how the workflow responded to historical price movements and configured execution rules.
Before starting a backtest, configure the parameters required for the simulation.
You can:
-
Select the historical date range.
-
Define the initial capital.
-
Configure slippage assumptions.
-
Select supported market segments.
-
Review the strategy logic being tested.
-
Apply the configured schedule and workflow rules.
The results depend on the assumptions and parameters used for the test. Changing the date range, capital or slippage can affect the output.
To backtest an automation:
-
Open the required automation.
-
Review the Triggers, Conditions and Actions.
-
Select Backtest.
-
Set the historical date range.
-
Enter the initial capital.
-
Configure slippage and other available parameters.
-
Start the backtest.
-
Review the performance report, charts and simulated trades.
After the backtest is complete, review the available performance metrics to understand how the strategy behaved during the selected period.
Key metrics may include:
-
Total Returns
-
Profit Factor
-
Volatility
-
Maximum Drawdown
-
Win Rate
-
Number of Trades
-
Profit and Loss
-
Trade statistics
These metrics should be reviewed together. Returns alone do not show the level of risk, the number of trades or the periods of decline during the backtest.
The Capital Curve shows how the simulated capital changed throughout the backtest period.
Use it to:
-
Track portfolio growth over time.
-
Identify periods of consistent or changing performance.
-
Observe the effect of profitable and losing trades.
-
Compare the strategy’s performance across different periods.
A Capital Curve shows the historical path of the simulation. It does not represent a guaranteed future outcome.
The Drawdown chart shows periods when the simulated capital declined from a previous high.
Use it to review:
-
The size of historical declines.
-
How long a drawdown lasted.
-
The recovery after a decline.
-
Whether losses were concentrated in a specific period.
Maximum Drawdown shows the largest decline recorded during the selected backtest period.
The Backtest Calendar displays period-wise results across the selected date range.
You can use it to review:
-
Daily profit and loss.
-
Weekly performance.
-
Monthly performance.
-
Periods with consecutive gains or losses.
-
Changes in performance across different market conditions.
This helps you study how the strategy behaved throughout the test period instead of relying only on the final result.
The Trade Book lists the simulated trades generated during the backtest.
Review details such as:
-
Entry and exit information.
-
Trade direction.
-
Quantity.
-
Entry and exit prices.
-
Profit or loss.
-
Trade duration.
-
Applicable charges, where shown.
Reviewing individual trades can help identify repeated entry or exit patterns and understand which rules influenced the result.
Backtest may provide Gross and Net views.
-
Gross shows performance before applicable charges.
-
Net shows performance after brokerage, taxes and other applicable charges included in the simulation.
Comparing both views helps you understand how charges affect the strategy’s historical results.
You can save multiple backtest runs while refining a strategy and compare different versions.
For example, compare:
-
Different entry conditions.
-
Different exit rules.
-
Different stop-loss or target settings.
-
Different time schedules.
-
Different slippage assumptions.
-
Different indicator parameters.
When comparing versions, keep the date range and other parameters consistent where possible. This makes it easier to identify the effect of the specific change.
| Insight | Description |
|---|---|
| Performance Metrics | Review returns, drawdown, volatility, profit factor, win rate and trade statistics. |
| Capital Curve | Track simulated capital growth across the selected period. |
| Drawdown Chart | Review the size and duration of historical declines. |
| Backtest Calendar | Analyse daily, weekly or monthly profit and loss. |
| Trade Book | Review each simulated trade with entry, exit and profit or loss details. |
| Gross and Net View | Compare results before and after applicable charges. |
| Version Comparison | Compare saved backtest runs while refining the strategy. |
If the results do not match the intended trading plan, review the workflow and modify the relevant rules.
You can review:
-
Whether the Trigger activates at the intended time.
-
Whether Conditions are too broad or restrictive.
-
Whether Actions place or exit trades as configured.
-
Whether the schedule matches the trading plan.
-
Whether slippage assumptions are suitable.
-
Whether the strategy behaves differently across market periods.
After making changes, run another backtest and compare the results with the earlier version.
Backtest results are based on historical data and configured assumptions. They may not reflect the conditions of live trading.
Actual results can differ because of:
-
Slippage.
-
Liquidity.
-
Bid and Ask spreads.
-
Order execution.
-
Market gaps.
-
Changes in volatility.
-
Brokerage, taxes and other charges.
-
Differences between simulated and live market conditions.
Backtest should be used to study and refine a strategy. It should not be treated as a guarantee of future performance.
Learn more about Backtest or read the blog for additional guidance on testing and analysing trading strategies.
Backtesting helps you review the strategy's historical performance, identify gaps in its logic and compare different versions before deploying it live.
Depending on the available settings, you can configure the historical date range, initial capital, slippage and supported market segment.
You can review metrics such as Total Returns, Profit Factor, Volatility, Maximum Drawdown, Win Rate and number of trades.
Maximum Drawdown shows the largest decline from a previous high in the simulated capital during the selected period.
Yes. The Trade Book displays details of the simulated trades generated during the backtest.
Gross results show performance before applicable charges. Net results show performance after the charges included in the backtest.
Yes. You can save multiple backtest versions and compare them while refining the strategy.
No. Live results may differ because of slippage, liquidity, execution prices, market conditions and other factors.