online support page Discrepancies: Real-Time vs Backtest says:
•During a backtest assumptions are made on the fill price of an order is based on the OHLC of a bar and the price of the order itself. You can also have differences depending on which fill algorithm you choose.
•During simulation using real-time market data or Playback, the fill price is based on incoming market data and volume, you may receive better or worse fill prices dependant on where the bid or ask price is and what volume is available at this market prices.
•During real-time brokerage trading, orders are filled according to market dynamics.
As you can see, there are three different models on what price an order can be filled at.
I do not understand the last sentence "As you can see, there are three different models on what price an order can be filled at." In my understanding point 3 is the same as point 2. When Real-Time data is being recorded and used as feed for point 2 than point 2 will be exactly the same when played back. What is the difference?
Question 2)
When set "Calculate = on each tick" does that mean that this setting can only take effect when used in real-time market or playing back recorded data? Let's say I use "calculate on each tick" and I do a backtest on historical data (OHLC can be used only), this will result in the backtest to use CLOSE for each bar independent of that tick-by-tick setting? Let's say I use "calculate on each tick" and I do a backtest through market replay, then and only then this setting can take effect?
Question 3)
The option in stragegy builder, condition configuration, price = ask or bid can only take effect when "Calculate = on each tick" so this is useless when running historical backtest based on OHLC data, right?
Comment