Backtest in FYERS Automate helps you test an automation strategy using historical market data before running it live. It shows how the strategy would have performed in the past based on your selected time period, capital, slippage, and order placement logic.
Backtest is available on FYERS Web and the FYERS App. It supports Equity Cash, Equity Derivatives (F&O), and MCX Commodities.
A backtest runs your Automate strategy on historical data and generates performance results for the selected period. You can use it to review whether your strategy would have generated trades, profits, losses, drawdowns, or other performance outcomes.
| Section | Purpose |
|---|---|
| Summary | Shows key performance metrics such as returns, trades, profit factor, volatility, and Max Drawdown. |
| Performance Chart | Shows Capital Deployed and Drawdown over the selected period. |
| Backtest Calendar | Shows period-wise P&L, total trades, positive trades, and negative trades. |
| Trades | Shows individual backtested trades. |
| Net View | Shows results after brokerage, taxes, and other charges. |
| Gross View | Shows results before brokerage, taxes, and other charges. |
| Export Tradebook | Downloads the backtested trades as a CSV file. |
To run a backtest, the automation workflow must include an order placement action. If the workflow only generates alerts and does not place orders, a backtest cannot be run.
The automation must also be scheduled before running a backtest. Without a schedule, the backtest option cannot be used.
During backtest configuration, you need to enter:
| Field | Meaning |
|---|---|
| Time Period | Historical date range used for the backtest. |
| Initial Capital (₹) | Starting capital used for the backtest. |
| Slippage (%) | Expected difference between the intended and executed price. |
Slippage can be edited while running the backtest. It can also be modified after the results are generated to view adjusted results.
| Scenario | Solution |
|---|---|
| The workflow only sends alerts | Backtest cannot be run. |
| No schedule is set | Backtest cannot be run. |
| Slippage is changed after results are generated | Results are recalculated based on the updated slippage. |
| Net View is selected | Results include brokerage, taxes, and other charges. |
| Gross View is selected | Results exclude brokerage, taxes, and other charges. |
| Tradebook is exported | Backtested trades are downloaded as a CSV file. |
Backtest results are based on historical data and selected assumptions. They do not guarantee future performance. Live results may differ due to market conditions, liquidity, execution price, charges, and other real-time factors.