Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Not starting

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Strategy Not starting

    I get the following message in the output window and the OnBarUpdate is not executed.( I know Initialise is being executed):

    **NT** Enabling NinjaScript strategy 'ZoneRecovery/5e9ac9d3b7f84381b2944c8423b2eb42' : 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 CalculateOnBarClose=True MaxRestarts=4 in 5 minutes

    **NT** Disabling NinjaScript strategy 'ZoneRecovery/5e9ac9d3b7f84381b2944c8423b2eb42'

    I am running this strategy on simulated data feed.

    Can you help?

    #2
    Hello venkatesh,

    Thank you for your post.

    In the Log tab of the NinjaTrader Control Center do you see an error message when you attempt to enable the strategy? If so, what does the error message report?

    Comment


      #3
      Hi the message is:
      Enabling NinjaScript strategy 'ZoneRecovery/c52d92a553b942e29f78a554f01b8fa5' : 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 CalculateOnBarClose=True MaxRestarts=4 in 5 minutes

      This is the same as the first message I see in the output window which I have in my previous post. Even though I have code to enter long 10 contracts in my OnBarUpdate module this does not get executed immediately. This happens only after a few bars after which things seem normal.

      Comment


        #4
        Hello venkatesh,

        Thank you for your response.

        May I test the strategy on my end? If so, please attach the strategy to your response. You will find the strategy in the following directory on your PC: (My) Documents\NinjaTrader 7\bin\Custom\Strategy.

        Comment


          #5
          I have emailed the strategy to you.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          597 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          343 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          103 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          556 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          555 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X