I did the following:
1. Connected to Market Replay.
2. added several copies of the strategy to a chart
3. selected them all at "Strategy" tab of the Control Center window
4. Enabled them all using pop up menu -> Enable
everything works fine. but when I
5. changed Market Replay time (Reply window -> pop up menu -> Go to ...)
then all the strategies become disabled.
I tried to enable them again, but I am unable to do so. Output window shows 10 lines similar to this:
**NT** Enabling NinjaScript strategy 'MyRunSignalsTimeSL5/7fcae72d031f4c0e88aa138e487addd3' : On starting a real-time strategy - StrategySync=SubmitImmediately SyncAccountPosition=False EntryHandling=AllEntries EntriesPerDirection=1 StopTargetHandling=PerEntryExecution ErrorHandling=StopStrategyCancelOrdersClosePositio ns ExitOnClose=False Set order quantity by=Strategy ConnectionLossHandling=KeepRunning DisconnectDelaySeconds=961 CancelEntryOrdersOnDisable=False CancelExitOrdersOnDisable=True CalculateOnBarClose=False MaxRestarts=2006 in 1 minutes
but strategies that I added to the chart do not become enabled.
The strategy does not throw exceptions in Initialize or OnStartUp methods (and at any other methods).
Sometimes it helps if I remove and re-add strategies to the chart. Sometimes it helps if I close NinjaTrader and start it again. Sometimes it helps if I create a new strategy & copy there code of my old strategy (without changing anything in the code except the name of the class that inherits from Strategy class). Sometimes nothing helps except restarting computer.
At the same time, for example, SimpleMACrossOver (that come with NT) does not have such issues - it can be enabled even if my strategy cannot.
What can be wrong?

Comment