Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

v7.0.0.11 API Bug

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

    v7.0.0.11 API Bug

    StrategyBase.OnStartUp() not being invoked when a strategy is enabled.

    Used to work in v7.0.0.10, is now broken in v7.0.0.11.

    #2
    Just using Reflector to examine the NinjaTrader.Core DLL and it appears that we have OnStart() and OnStop() methods with this release (much better naming convention by the way). Should I be using these instead?

    Also, the API exposes a OnExecutionUpdate() method.

    This seems to duplicate the functionality of the OnExecution() method. What's the intended usage scenarios for the two methods?

    Comment


      #3
      ScoobyStoo, I'm not sure exactly what you refer to, I tested OnStartUp() via prints from NinjaScript strategy and it works as expected for me. Could you please clarify?

      Will need to check into OnExecutionUpdate().

      Comment


        #4
        I've got a strategy which I'm enabling via the Strategies tab.

        OnStart() fires properly.
        OnStartUp() doesn't.

        Not a problem though. I've just moved my start-up logic to OnStart().

        Comment


          #5
          I see, thanks - can you please try the simple snippet attached? This works for me on beta 11 regardless from where enabled, either Chart or Strategies tab (using the OnStartUp() method).

          Thanks.
          Attached Files

          Comment


            #6
            Nope. Retested it and it's definitely not firing.

            Comment


              #7
              Thanks, I'll have a coworker try to reproduce too - I would suggest you retry after a 100% clean NT 7 11 install.

              For your earlier inquiry - OnExecutionUpdate() is unfortunately an unsupported method.

              Comment


                #8
                ScoobyStoo, is this issue resolved now for you on latest B13?

                Thanks

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by CarlTrading, 03-31-2026, 09:41 PM
                1 response
                47 views
                0 likes
                Last Post NinjaTrader_ChelseaB  
                Started by CarlTrading, 04-01-2026, 02:41 AM
                0 responses
                23 views
                0 likes
                Last Post CarlTrading  
                Started by CaptainJack, 03-31-2026, 11:44 PM
                0 responses
                33 views
                1 like
                Last Post CaptainJack  
                Started by CarlTrading, 03-30-2026, 11:51 AM
                0 responses
                51 views
                0 likes
                Last Post CarlTrading  
                Started by CarlTrading, 03-30-2026, 11:48 AM
                0 responses
                42 views
                0 likes
                Last Post CarlTrading  
                Working...
                X