When I backtest the same strategy, the opening bar price is accurate. It's only during simulated real-time testing that is incorrect. In order to get the open of the first bar I have been using this piece of code.
CurrentDayOHL().CurrentOpen[Bars.BarsSinceSession];
Am I doing something wrong?
Thanks for any help
Comment