Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

When/How is the Data Series in the Analyzer Settings populated in a Strategy?

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

    When/How is the Data Series in the Analyzer Settings populated in a Strategy?

    I have a Generic Strategy so I don't want to have any AddDataSeries explicit statements in my code. But I don't understand at what point when the Strategy is added to a chart, or more commonly, when used in a backtest the configured Dataseries gets assigned. In particular, when would this.Instrument, or this.TickSize be populated? They seem to be null in OnStateChanged state==Configured, do I need to wait for a state DataLoaded or Finalized?

    -Jason

    #2
    Hello Jason,

    Thanks for your post.

    The helpguide section for OnStateChange() does provide that for the state.dataLoaded which is: Use for logic that needs to access data related objects like Bars, Instruments, BarsPeriod, TradingHours.

    http://ninjatrader.com/support/helpG...tatechange.htm

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    657 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    373 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    109 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    574 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    579 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X