Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Unable to start strategy

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

    Unable to start strategy

    One of my strategies suddenly won't start. I turn it on and nothing happens - it remains false. Nothing in my log or output window except for this:

    **NT** Enabling NinjaScript strategy 'CrazyIvan/e045ec7fb22d4e6887b242c2c9048b53' : 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=120 CancelEntryOrdersOnDisable=False CancelExitOrdersOnDisable=True CalculateOnBarClose=False MaxRestarts=10 in 30 minutes
    8/5/2013 17:13:37 CancelAllOrders: BarsInProgress=0
    8/5/2013 17:13:37 CancelAllOrders: BarsInProgress=1
    8/5/2013 17:13:37 CancelAllOrders: BarsInProgress=2

    This is on any workspace and on a brand new chart. This is a fresh NT installation and I have fixed and then reset my DB.

    Any ideas?
    Last edited by molecool; 08-05-2013, 03:33 PM.

    #2
    Is there more in the output window?

    Does at any point it say something like
    **NT** Disabling NinjaScript strategy 'CrazyIvan/04e61ccd8adb42fab44d12c56b912a60'

    If you would like to post or mail in a sample of the script I can test it on my end.
    LanceNinjaTrader Customer Service

    Comment


      #3
      You may already have checked this, but you can't enable strategies if you have the chart trader activated.

      Comment


        #4
        Originally posted by dynoweb View Post
        You may already have checked this, but you can't enable strategies if you have the chart trader activated.
        Where do I find the chart trader? But I don't think that is it as my other strategies load fine.

        Comment


          #5
          Originally posted by NinjaTrader_Lance View Post
          Is there more in the output window?

          Does at any point it say something like
          **NT** Disabling NinjaScript strategy 'CrazyIvan/04e61ccd8adb42fab44d12c56b912a60'

          If you would like to post or mail in a sample of the script I can test it on my end.
          No, as I mentioned - this is what's confusing me. It refuses to launch without any error messages. What I supplied is all there is!

          Comment


            #6
            Figured it out...

            I was loading a second day series and had too few bars on my chart - not sufficient to populate a day I guess. Weird however - NT should have issued some type of warning, so that definitely goes into the suggestion box.

            Comment


              #7
              Thanks for the information. Could you provide step by step instructions for reproducing this issue? This will allow me to recreate on my end and better assist our development team.
              LanceNinjaTrader Customer Service

              Comment


                #8
                Originally posted by NinjaTrader_Lance View Post
                Thanks for the information. Could you provide step by step instructions for reproducing this issue? This will allow me to recreate on my end and better assist our development team.
                Simple - create a new strategy, add a second series of the same instrument set to daily. Then load up 100 (or perhaps less) 5-min bars on your chart and enable the strategy. It will come on and then terminate immediately without an error message as there aren't sufficient days to populate the series.

                Comment


                  #9
                  Unfortunately I'm not able to reproduce this on my end. Are you able to provide a simple script that replicates the issue?

                  What are you placing in OnBarUpdate()?

                  When I enable the script in the way you described the script enables and runs without error even though no daily bars are complete (I placed on a chart with 25, 5 minute bars)
                  LanceNinjaTrader Customer Service

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                  0 responses
                  650 views
                  0 likes
                  Last Post Geovanny Suaza  
                  Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                  0 responses
                  370 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by Mindset, 02-09-2026, 11:44 AM
                  0 responses
                  109 views
                  0 likes
                  Last Post Mindset
                  by Mindset
                   
                  Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                  0 responses
                  574 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by RFrosty, 01-28-2026, 06:49 PM
                  0 responses
                  577 views
                  1 like
                  Last Post RFrosty
                  by RFrosty
                   
                  Working...
                  X