-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 CarlTrading, Yesterday, 11:51 AM
|
0 responses
18 views
0 likes
|
Last Post
by CarlTrading
Yesterday, 11:51 AM
|
||
|
Started by CarlTrading, Yesterday, 11:48 AM
|
0 responses
23 views
0 likes
|
Last Post
by CarlTrading
Yesterday, 11:48 AM
|
||
|
Started by CaptainJack, 03-25-2026, 09:53 PM
|
0 responses
27 views
0 likes
|
Last Post
by CaptainJack
03-25-2026, 09:53 PM
|
||
|
Started by CaptainJack, 03-25-2026, 09:51 PM
|
0 responses
15 views
0 likes
|
Last Post
by CaptainJack
03-25-2026, 09:51 PM
|
||
|
Started by Mindset, 03-23-2026, 11:13 AM
|
0 responses
22 views
0 likes
|
Last Post
by Mindset
03-23-2026, 11:13 AM
|

Comment