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 TheTradingMantis, 01-19-2023, 02:05 AM
      42 responses
      908 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by _Zero_, 04-10-2020, 03:21 PM
      144 responses
      7,891 views
      6 likes
      Last Post NinjaTrader_ChelseaB  
      Started by Richozzy38, Yesterday, 01:06 PM
      7 responses
      28 views
      0 likes
      Last Post Richozzy38  
      Started by swjake, Today, 12:04 PM
      5 responses
      16 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by forrestang, Today, 01:41 PM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_Erick  
      Working...
      X