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 Mindset, Today, 06:46 AM
    0 responses
    9 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, Yesterday, 05:21 PM
    0 responses
    14 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    15 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    82 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    48 views
    0 likes
    Last Post PaulMohn  
    Working...
    X