Last updated on January 9, 2019 by Kornel Mazur
Settings – Data
This is where you can configure the symbol, timeframe, and time range on which the strategies will be backtested.
allows you to choose which of the available backtesting engines (MetaTrader4 / MetaTrader 5 etc.) should be used for testing the strategy.
Backtest data settings
choose the symbol, timeframe and date range on which the strategies will be tested.
If you use multi-TF or multi-symbol strategies you must select symbol and timeframe for each additional chart:
means how the price is data simulated during the backtest.
It is usually sufficient to use Selected Timeframe mode for Market orders, or Tick simulation mode for Stop/Limit orders.
You can also use faster mode for generation, and then slower mode for strategies retest.
Test precision types:
- Selected Timeframe only
it is the fastest testing mode. It uses only the main timeframe to simulate the prices, it creates four “ticks” – at bar Open, High, Low and Close values.
This results in a very fast backtesting with acceptable accuracy for a quick preview. However, for Stop or Limit orders the testing accuracy might not be sufficient, and you should try more precise mode.
- 1 Minute data
slower testing mode, it uses minute data (if available) to simulate price changes during the testing. It creates 4 ticks every minute, and thus simulates also movement within the bar.
- Real Tick – custom spread
this mode uses Bid value from real tick data (if available) for exact price simulation, but it computes Ask value using the custom spread you specify. It is slower than the other modes and it should be used for final verification of new strategies.
- Real Tick – real spread
this mode uses real tick data for exact price simulation with real Bid and Ask prices. It is much slower than the other modes and it should be used for final verification of new strategies.
You can specify spread used in backtest – it is a difference between Bid and Ask price.
Simulated slippage in pips/ticks – it will add the specified number of pips/ticks to the opening and closing price.
Minimum distance of price – most MetaTrader brokers have limitation how close to the actual price they allow you to place stop or limit pending order
clicking on this link will open a new popup dialog, where you can configure these additional settings.
Data range parts
Allows you to split the history data to multiple parts of different types:
- In Sample Training (IST) – this is the same as In Sample that we had until now. Genetic evolution uses this part to determine fitness and rank the strategies in population.
- In Sample Validation (ISV) – a new part in SQ X that is used to determine if strategy performance in IST part holds also in ISV part.
In machine learning it is used to determine if models trained on Training set (IST) holds also in Validation set.
In SQ X it can be used to restart genetic evolution when fitness stagnates in this part.
- Out of sample – this is as same as before, it represents an “unknown” part of data that was not part of the evolution
- No Trade – special part that means that strategy will not trade in this part. It can be used for example to skip a part in the middle of data that has low volatility.
Check out more about the data parts types in our blog article Data parts – what they are and how they could be used?
Was this article helpful? The article was useful The article was not useful
Spread 1 is 0.0001 or 0.00001 ?
Spread 1 pips= 10 points EURUSD
I cannot change the Precision from “selected” to M1 – even though I have M1 data in the Data Manager and the timeframe on H1. I am retesting SPY. What do I miss?
For MultiCharts or TradeStation only the “selected timeframe” option is available
Thank you Tomas; may I ask why this is? And how does it change the result if I switch to MT4 for this single test? Would that be ok?
If I use an Algowizard strategy, in which I use 2 times frame,
How can I add another Subchart in “Backtest data settings”..??
In the main editor on the right side panel click Strategy charts and define subcharts. Then you can use them in your conditions
What is Min Distance?
Please explain with a detailed example.
Hello, each broker limits the minimal distance for a STOP order from actual market price