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

Comment