Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

State.Configure and OnRender

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

    State.Configure and OnRender

    Hi All,

    Hopefully quick question about the sequence of events in the NT lifecycle for an indicator. Would it be true that any logic (like initializing a string array) contained in State.Configure would happen BEFORE the very first call to OnRender() ??

    Thanks.

    #2
    Hello Bidder,

    Thanks for your post.

    Yes, that is correct. State.Configure in the OnStateChange() method will occur before the call to OnRender() occurs.

    This could be seen by adding a print in a condition that checks if State == State.Configure in OnStateChange() and also adding a print to the beginning of the OnRender() method. Then add the indicator to a chart an note a New > NinjaScript Output window to see the prints.

    See this help guide for more information about the NinjaScript Lifecycle: https://ninjatrader.com/support/help...fecycle_of.htm

    Let us know if we may assist further.
    Brandon H.NinjaTrader Customer Service

    Comment


      #3
      Got it. Thanks.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Haiasi, Today, 06:53 PM
      1 response
      4 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by ScottWalsh, Today, 06:52 PM
      1 response
      12 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by ScottW, Today, 06:09 PM
      1 response
      5 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by ftsc2022, 10-25-2022, 12:03 PM
      5 responses
      256 views
      0 likes
      Last Post KeyonMatthews  
      Started by Board game geek, 10-29-2023, 12:00 PM
      14 responses
      244 views
      0 likes
      Last Post DJ888
      by DJ888
       
      Working...
      X