There's a problem I'm having with multi-instrument strategy/indicator at the moment.
There's an indicator and strategy I developed for NT7, however the strategy uses internal calculation (same calculation as indicator) instead of using indicator itself.
When I check for signal, I check newest closed bar (index = 1) every tick (onbarclose = false) and check the position state. If rules are met, I take long position on one instrument, short position on the other. During live conditions trades are taken great, however the historical values are 1 bar late (as if I check bar with index = 2 instead of index = 1) and if I reload the scripts (F5), the "proper" live trades are transformed into historical and are 1 bar late as well.
Any suggestions where should I look?
Comment