With live trading (realtime), I use a strategy with IOG to have the marketposition and synchronisation of the marketposition synced after a tick. For order entry and exit calculation and placing of exits I use
Code: Select all
If barstatus(1) = 2 then begin
But now the question, how this works in backtesting.
If I use the same code on backtesting with IOG, MC will look at the OHLC. If I use the same "if barstatus(1) =2" for the entry and exit calculation and placing. Will it calculate and place these values at close of bar (every 3min). Or does MC sees OPEN, HIGH, LOW, CLOSE as close of bar.
Quote from wiki. https://www.multicharts.com/trading-sof ... hart_Types
In other words, does backtesting with IOG and "if barstatus(1) =2" will treat one of the OHLC as the "close" of bar and trigger exit's not always on the real close of bar (as it works with realtime + IOG).Calculation of the “Buy next bar at market” strategy is done as follows:
1. calculation on the first bar segment (Open) and generation of a market order on Open = Low of the next bar segment.
2. calculation on the second bar segment (Open-High) and generation of a market order on Open = High of the next bar segment.
3. calculation on the third bar segment (High-Low) and generation of a market order on Open = Low of the next bar segment.
4. calculation on the fourth bar segment (Low-Close) and generation of a market order on Open of the next bar.