Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

What events get fired when switching instruments/switching bar periods?

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

    What events get fired when switching instruments/switching bar periods?

    When in the chart, and I switch from ES to (say) ZB, what event gets fired? Same question for when changing from 5 minutes bars to 30 minutes, for instance.

    #2
    funk101,

    Do you mean events in indicators / strategies? When a chart or timeframe is changed the strategies and indicators get reset and so the whole sequence would fire again.

    Please let me know if I may assist further.
    Adam P.NinjaTrader Customer Service

    Comment


      #3
      I'm working with an indicator, but I would imagine the same happens in a strategy.
      So the order of events would be:

      - OnTermination()
      - Dispose() ?
      - Initialize()
      - OnStartUp()

      Comment


        #4
        funk,

        Yes, with the exception that Dispose() is not recommended to be overridden, and it can be called later than expected.

        From our help guide :

        Note: Please do NOT overload the Dispose() method. Dispose() method could be triggered much later than expected resulting in resources not being released early enough.
        Adam P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        155 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        90 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        137 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        130 views
        1 like
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        107 views
        0 likes
        Last Post CarlTrading  
        Working...
        X