Last updated on 9. 1. 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.

SQ Data settings

Trading Engine

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:

SQ Backtest data settings

Test parameters

SQ test parameters config

Testing precision

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.

Min distance

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.

SQ Commissions config


Data range parts

SQ Out of Sample Training Validation data part types

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

Notify of
Newest Most Voted
Inline Feedbacks
View all comments
Ronnaphop Monthian
Ronnaphop Monthian
16. 1. 2019 1:46 pm

Spread 1 is 0.0001 or 0.00001 ?

Krzysztof Ozog
Krzysztof Ozog
Reply to  Ronnaphop Monthian
16. 1. 2021 7:52 pm

Spread 1 pips= 10 points EURUSD

19. 4. 2022 6:01 pm

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?

Thank you!

Reply to  PDI
19. 4. 2022 7:24 pm

For MultiCharts or TradeStation only the “selected timeframe” option is available

Reply to  tomas262
19. 4. 2022 7:32 pm

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?

Lisandro Micheletti
24. 10. 2022 5:53 pm

If I use an Algowizard strategy, in which I use 2 times frame,
How can I add another Subchart in “Backtest data settings”..??

Reply to  Lisandro Micheletti
24. 10. 2022 7:02 pm

In the main editor on the right side panel click Strategy charts and define subcharts. Then you can use them in your conditions

24. 12. 2022 3:51 pm

What is Min Distance?
Please explain with a detailed example.
Thank You

Reply to  sanctum
27. 12. 2022 9:55 pm

Hello, each broker limits the minimal distance for a STOP order from actual market price