**NT** Enabling NinjaScript strategy 'TestStrategy2/7939fb2a38ef4636ba6eff5d4920e754' : On starting a real-time strategy - StrategySync=SubmitImmediately SyncAccountPosition=True EntryHandling=AllEntries EntriesPerDirection=1 StopTargetHandling=PerEntryExecution ErrorHandling=StopStrategyCancelOrdersClosePositions ExitOnClose=True/ triggering 30 before close Set order quantity by=Strategy ConnectionLossHandling=Recalculate DisconnectDelaySeconds=10 CancelEntryOrdersOnDisable=False CancelExitOrdersOnDisable=True MaxRestarts=99 in 60 minutes OnBarUpdate: Bar #0 [13.01.2010 01:45:00] (Historical) OnBarUpdate: Bar #1 [13.01.2010 01:46:00] (Historical) OnBarUpdate: Bar #2 [13.01.2010 01:47:00] (Historical) OnBarUpdate: Bar #3 [13.01.2010 01:49:00] (Historical) OnBarUpdate: Bar #4 [13.01.2010 01:51:00] (Historical) OnBarUpdate: Bar #5 [13.01.2010 01:52:00] (Historical) OnBarUpdate: Bar #6 [13.01.2010 01:53:00] (Historical) OnBarUpdate: Bar #7 [13.01.2010 01:54:00] (Historical) OnBarUpdate: Bar #8 [13.01.2010 01:55:00] (Historical) **NT** Syncing account position on starting strategy 'TestStrategy2/7939fb2a38ef4636ba6eff5d4920e754'. Account position='' Strategy position='' OnConnectionStatus: Bar #9 [13.01.2010 01:55:00] Order Status: Connecting Price Status: Connected OnConnectionStatus: Bar #9 [13.01.2010 01:55:00] Order Status: Connected Price Status: Connected OnBarUpdate: Bar #9 [13.01.2010 01:56:00] (Live) OnBarUpdate: Bar #10 [13.01.2010 01:58:00] (Live) OnConnectionStatus: Bar #10 [13.01.2010 01:58:00] Order Status: ConnectionLost Price Status: ConnectionLost **NT** Strategy 'TestStrategy2/7939fb2a38ef4636ba6eff5d4920e754' lost price connection for more than 10 seconds and will be restarted. **NT** Disabling NinjaScript strategy 'TestStrategy2/7939fb2a38ef4636ba6eff5d4920e754' **NT** Enabling NinjaScript strategy 'TestStrategy2/7939fb2a38ef4636ba6eff5d4920e754' : On starting a real-time strategy - StrategySync=SubmitImmediately SyncAccountPosition=True EntryHandling=AllEntries EntriesPerDirection=1 StopTargetHandling=PerEntryExecution ErrorHandling=StopStrategyCancelOrdersClosePositions ExitOnClose=True/ triggering 30 before close Set order quantity by=Strategy ConnectionLossHandling=Recalculate DisconnectDelaySeconds=10 CancelEntryOrdersOnDisable=False CancelExitOrdersOnDisable=True MaxRestarts=99 in 60 minutes OnBarUpdate: Bar #0 [13.01.2010 01:45:00] (Historical) OnBarUpdate: Bar #1 [13.01.2010 01:46:00] (Historical) OnBarUpdate: Bar #2 [13.01.2010 01:47:00] (Historical) OnBarUpdate: Bar #3 [13.01.2010 01:49:00] (Historical) OnBarUpdate: Bar #4 [13.01.2010 01:51:00] (Historical) OnBarUpdate: Bar #5 [13.01.2010 01:52:00] (Historical) OnBarUpdate: Bar #6 [13.01.2010 01:53:00] (Historical) OnBarUpdate: Bar #7 [13.01.2010 01:54:00] (Historical) OnBarUpdate: Bar #8 [13.01.2010 01:55:00] (Historical) OnBarUpdate: Bar #9 [13.01.2010 01:56:00] (Historical) OnBarUpdate: Bar #10 [13.01.2010 01:58:00] (Historical) [COLOR=red]OnBarUpdate: Bar #11 [13.01.2010 01:59:00] (Historical)[/COLOR] **NT** Syncing account position on starting strategy 'TestStrategy2/7939fb2a38ef4636ba6eff5d4920e754'. Account position='' Strategy position='' OnConnectionStatus: Bar #12 [13.01.2010 01:59:00] Order Status: Connecting Price Status: Connected OnConnectionStatus: Bar #12 [13.01.2010 01:59:00] Order Status: Connected Price Status: Connected [COLOR=red]OnBarUpdate: Bar #12 [13.01.2010 02:04:00] (Live)[/COLOR] OnBarUpdate: Bar #13 [13.01.2010 02:05:00] (Live)
BTW: Timestamps in OnConnectionStatus are off because CurrentBar is already incremented by one but Time[0] still contains the time of the previous completed bar. This is not an error but just to explain the output.
EDIT: Some additional info: Account is GAIN (live, US), chart is $EURUSD 1min, NT servers for historical data.
Comment