updating, I always see a 'Close position' exit that isn't being generated by
the strategy, on the last bar of the chart (the currently forming bar) --
this makes the strategy go out of sync with the account.
In other words, the account and strategy will be in sync, and I'll
make a change to the ninja script which doesn't change the current
position of the strategy, and when I reload the script, I always get a
'Close position' on the last bar that wasn't triggered by the strategy.
When I wait for the session to close and the chart to stop updating and
reload the strategy that 'Close position' goes away.
Can someone explain this ?
Comment