Enable Deep Backtesting to test strategies over an extended historical data range. This feature is exclusive to TradingView Premium users.
Start and End Date
Define the date range for your backtesting. This ensures that your strategy is tested only within a specific timeframe.
Start Date β The beginning of the backtest period (e.g., 2021-10-02).
End Date β The last day of the backtest period (e.g., 2021-10-02).
Ensure that the date range covers enough historical data for meaningful analysis.
π Start In & Out Sample Backtest
This feature splits the data into separate sets for in-sample and out-of-sample testing to verify whether the strategy performs well on unseen data, preventing overfitting. Use this to validate your strategy's robustness.
Available Split Ratios:
50/50 β 50% of data for training, 50% for validation
70/30 β 70% for training, 30% for validation
80/20 β 80% for training, 20% for validation
β³ Delay Between Backtests
Set a delay to reduce TradingView API load and avoid triggering suspicious activity alerts.
Default delay: 0.25 sec
Delays prevents excessive API requests, reducing the risk of temporary restrictions on your TradingView account.
β±οΈ Maximum Waiting Time for Data
This setting determines how long The Optimiser waits for TradingView to return backtest results before timing out.
Default: 30 sec
If using Deep Backtesting, this value is automatically doubled
Reduce this time to speed up backtesting for simple strategies. Increase it if you frequently encounter data extraction errors.
π₯ Getting and Uploading Parameters
Get Parameters
Click Get Parameters to get a CSV file listing all your current strategy's parameters.
This CSV can be edited and re-uploaded to set your preferred parameters for optimization and other optimization settings for each parameter.
Upload Parameters
Upload a CSV file containing predefined strategy parameters.
The rows represent the different parameters to be optimized.
The columns define settings for each parameter.
Download the sample template to see an example of a correctly structured CSV file.