I have an issue with backtesting.
I compare parameters of two bars (current and previous) and if conditions are true, then I enter order on current bar. Problem with historical backtesting is that it makes all comparisons after current bar close and executes trade on next bar.In realtime, everything works. Please help, hw can I overcome this issue in historical simulation at least approximately.
Best regards
Comment