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 drewski1980, Today, 08:24 AM
    0 responses
    3 views
    0 likes
    Last Post drewski1980  
    Started by rdtdale, Yesterday, 01:02 PM
    2 responses
    16 views
    0 likes
    Last Post rdtdale
    by rdtdale
     
    Started by TradeSaber, Today, 07:18 AM
    0 responses
    7 views
    0 likes
    Last Post TradeSaber  
    Started by PaulMohn, Today, 05:00 AM
    0 responses
    10 views
    0 likes
    Last Post PaulMohn  
    Started by ZenCortexAuCost, Today, 04:24 AM
    0 responses
    6 views
    0 likes
    Last Post ZenCortexAuCost  
    Working...
    X