Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

API - State - what is the order of all enums?

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

    API - State - what is the order of all enums?

    Some State enums are clear, some not:
    • State.SetDefaults - for initial configuration
    • State.Configure - for later configuration + custom resources
    • State.Historical - when processing historical data
    • State.Transition - when switching from historical -> realtime data
    • State.Realtime - when processing live data
    • State.Terminated - termination of the strategy


    What mean these states and where they should in order of processing?
    • State.Active
    • State.Finalized
    • State.DataLoaded (which data were loaded specifically?)
    Last edited by misova; 10-14-2015, 04:44 PM.

    #2
    State.Active is used for objects which do not process data. Think of it like "RealTime" for something like a ShareAdapter. An Indicator/Strategy does not go to State.Active.

    State.DataLoaded comes after State.Configure, but before. State.Historical. It just signals that all required data objects have been loaded into the hosting object.

    State.Finalized is used internally, it is no use to an end-user/3rd party developer. But basically, the last stage we use to shut down an indicator after it has been terminated, or has ran into a fatal error.

    More details can be found here: http://ninjatrader.com/support/helpG...tatechange.htm
    MatthewNinjaTrader Product Management

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by FrazMann, Today, 11:21 AM
    0 responses
    1 view
    0 likes
    Last Post FrazMann  
    Started by geddyisodin, Yesterday, 05:20 AM
    8 responses
    51 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by cmtjoancolmenero, Yesterday, 03:58 PM
    10 responses
    36 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by DayTradingDEMON, Today, 09:28 AM
    4 responses
    24 views
    0 likes
    Last Post DayTradingDEMON  
    Started by George21, Today, 10:07 AM
    1 response
    17 views
    0 likes
    Last Post NinjaTrader_ChristopherJ  
    Working...
    X