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.
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment


      #3
      Got it. Thanks.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      181 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      334 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      258 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      358 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      187 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Working...
      X