Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

I'm getting an error when launching my strategy

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

    I'm getting an error when launching my strategy

    I'm getting an error when launching my strategy that previously ran with no problems. I've gone as far as completely commenting out my onbarupdate and initialize methods. This is the error I keep and getting:

    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=False CalculateOnBarClose=True MaxRestarts=4 in 5 minutes


    Any help would be most appreciated.

    #2
    Originally posted by milemke08 View Post
    I'm getting an error when launching my strategy that previously ran with no problems. I've gone as far as completely commenting out my onbarupdate and initialize methods. This is the error I keep and getting:

    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=False CalculateOnBarClose=True MaxRestarts=4 in 5 minutes


    Any help would be most appreciated.
    There is no error logged in that message. Maybe it will help if you describe what happens, or if there is an actual error message, to show that message.

    Comment


      #3
      It happens every time I go the Strategies tab on the Control Center and start the strategy I'm trying to test. It prints out on the Output Window that I enabled from the strategy code sheet.

      Comment


        #4
        Originally posted by milemke08 View Post
        It happens every time I go the Strategies tab on the Control Center and start the strategy I'm trying to test. It prints out on the Output Window that I enabled from the strategy code sheet.
        Is there an actual error message, or is it just the strategy does not get enabled?

        Comment


          #5
          There's no pop-up window error message, if that's what you're asking. My strategy stays enabled as well. I believe it has something to do with the code in my strategy, and if I knew what this about I would know where to look in my code.

          Comment


            #6
            Originally posted by milemke08 View Post
            There's no pop-up window error message, if that's what you're asking. My strategy stays enabled as well. I believe it has something to do with the code in my strategy, and if I knew what this about I would know where to look in my code.
            OK. So your strategy is enabled, and there is no error message. Why do you think that there is a problem? What are you expecting that is not happening? Is there anything at all in either the log or the Output Window if you enable it?

            Comment


              #7
              I believe there is a problem because I have Print commands used in both the initialize and onBarUpdate methods that aren't printing out like they should and have been.

              Comment


                #8
                Originally posted by milemke08 View Post
                I believe there is a problem because I have Print commands used in both the initialize and onBarUpdate methods that aren't printing out like they should and have been.
                You're going to need to post some code... or else we can just guess all night.

                Without seeing your code, something is not right in it probably.

                If you really think it is NT, have you tried restarting or even rebooting your machine?

                Is your session template 24x7 or 9am-5pm?

                Comment


                  #9
                  Originally posted by milemke08 View Post
                  I believe there is a problem because I have Print commands used in both the initialize and onBarUpdate methods that aren't printing out like they should and have been.
                  If calls in your event handlers are not being processed, it points to a problem either in your code, or the processing engine. You seem to be implying that your code did work at some time in the past, so we can start by tackling the processing engine. In order, until things are again tickety-boo:
                  1. Repair the database. Retry.
                  2. Restart. Retry.
                  3. Reinstall NT over the top of itself. Retry.
                  4. Uninstall and reinstall NT. Retry.

                  Comment


                    #10
                    milemke08, what you've posted is not really an error message - just the usual return seen when starting a script listing the settings used on this instance. Which feed, symbol and timeframe do you work on? Same on a different symbol and barstype? Would our SampleMACrossover script shipped with NT work normally for you?

                    Thanks

                    Comment


                      #11
                      NinjaTrader_Bertrand, I'm afraid I don't quite understand what you're saying. It's just a printout of the characteristics for the strategy I launched?

                      Comment


                        #12
                        That's correct Mike, it's not an error in any way.

                        Comment


                          #13
                          That's good to know, but I'm still running into the issue of my strategy not executing properly. Do you think it is at related to this printout?

                          Comment


                            #14
                            No, it would not be related to the print you shared. If you would like us to give your script a run, you can reach us directly at support at ninjatrader - please indicator the used market / expiry and timeframe as well then.

                            Comment

                            Latest Posts

                            Collapse

                            Topics Statistics Last Post
                            Started by sjsj2732, Yesterday, 04:31 AM
                            0 responses
                            31 views
                            0 likes
                            Last Post sjsj2732  
                            Started by NullPointStrategies, 03-13-2026, 05:17 AM
                            0 responses
                            286 views
                            0 likes
                            Last Post NullPointStrategies  
                            Started by argusthome, 03-08-2026, 10:06 AM
                            0 responses
                            283 views
                            0 likes
                            Last Post argusthome  
                            Started by NabilKhattabi, 03-06-2026, 11:18 AM
                            0 responses
                            133 views
                            1 like
                            Last Post NabilKhattabi  
                            Started by Deep42, 03-06-2026, 12:28 AM
                            0 responses
                            91 views
                            0 likes
                            Last Post Deep42
                            by Deep42
                             
                            Working...
                            X