"NinjaTrader Continuum (Live): Primary connection=Connection lost, Price feed=Connection lost"
after my strategy had established a long position. This interruption disabled, and then reenabled, my strategy, which would normally have closed the position at a price that was realized later in the session (after the interruption) but the position was never closed.
My questions are:
- Was this failure to submit an appropriate sell order due to the fact that my strategy's start behavior is set to WaitUntilFlat?
- If so, then which start behavior option would best allow the strategy to continue functioning as if the interruption had not occurred?
- If I change the start behavior option, do I need to remove the following lines (at the start of code section OnBarUpdate) that are intended to ensure processing of only realtime events?
return;
if (BarsInProgress != 0)
return;
if (CurrentBars[0] < 1)
return;
Comment