Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Lifecycle of a BarType

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

    Lifecycle of a BarType

    Which of the states mentioned in NT8 manual are available to BarTypes (SetDefaults / SetConfigure / Active etc) ?
    Is there a 'DataLoaded' state in BarTypes, and if not, what would be the best method to achieve a similar result.

    Many thanks,
    Louis

    #2
    Hello Louis335,

    For any type you can use the following print to track its lifetime and what states it hits:

    Code:
    protected override void OnStateChange()
    {
                Print(State);
    }
    A bars type active state is State.Active. Depending on what you are trying to do that would either be in State.Configure or State.Active for the BarsType.

    You can also reference the following list of types which shows their active state and also provides explanations for when you may see each state: https://ninjatrader.com/support/help...=onstatechange


    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Ok,
      Thank you for the pointer Jesse.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by cummish, Today, 08:43 PM
      0 responses
      3 views
      0 likes
      Last Post cummish
      by cummish
       
      Started by Option Whisperer, Today, 07:58 PM
      4 responses
      18 views
      0 likes
      Last Post Option Whisperer  
      Started by ETFVoyageur, 05-07-2024, 07:05 PM
      13 responses
      84 views
      0 likes
      Last Post ETFVoyageur  
      Started by cupir2, Today, 07:44 PM
      0 responses
      9 views
      0 likes
      Last Post cupir2
      by cupir2
       
      Started by reynoldsn, Today, 07:23 AM
      6 responses
      19 views
      1 like
      Last Post reynoldsn  
      Working...
      X