-Jason
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
When/How is the Data Series in the Analyzer Settings populated in a Strategy?
Collapse
X
-
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?
-JasonTags: None
-
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
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
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
373 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
109 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
574 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
579 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment