PDA

View Full Version : Strategy OnBarUpdate ...


TheChingachgook
01-14-2010, 10:23 AM
is not being performed.

Starting strategies in the chart has no effect - OnBarUpdate is not being performed.

Are there any changes in calling a strategy ? -->> Attached File

NinjaTrader_Josh
01-14-2010, 10:53 AM
There have been no changes in this regard. Your strategy works here on my end. Please ensure you have at least 20 bars of data.

This is the output from your strategy:
**NT** Enabling NinjaScript strategy 'MyTestStrategy/3573965340564692b07f5cc62a0a86dd' : On starting a real-time strategy - StrategySync=WaitUntilFlat SyncAccountPosition=False EntryHandling=AllEntries EntriesPerDirection=1 StopTargetHandling=PerEntryExecution ErrorHandling=StopStrategyCancelOrdersClosePositio ns ExitOnClose=True/ triggering 30 before close Set order quantity by=Strategy ConnectionLossHandling=KeepRunning DisconnectDelaySeconds=10 CancelEntryOrdersOnDisable=False CancelExitOrdersOnDisable=True MaxRestarts=4 in 5 minutes
1143.25
1143
1142.75
1143
1142.5
1142.25
1142
1142.5
1142

TheChingachgook
01-15-2010, 03:11 AM
... OK - I didn't realize the Enabled-Property of the strategy ... now it works

... but wouldn't it be better to set the default value to true ?

because if you start a strategy, most of the time you are also want to perform the strategy!?