-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.htmPaul H.NinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Johndc, Today, 04:39 AM
|
0 responses
2 views
0 likes
|
Last Post
by Johndc
Today, 04:39 AM
|
||
Started by johntraderuser2, Today, 02:34 AM
|
0 responses
8 views
0 likes
|
Last Post Today, 02:34 AM | ||
Started by IanS00, 03-27-2024, 11:24 AM
|
2 responses
12 views
0 likes
|
Last Post Today, 02:00 AM | ||
Started by Mariawilcoxi, Today, 01:32 AM
|
0 responses
5 views
0 likes
|
Last Post
by Mariawilcoxi
Today, 01:32 AM
|
||
Started by gleichnerany, Today, 01:17 AM
|
0 responses
5 views
0 likes
|
Last Post
by gleichnerany
Today, 01:17 AM
|
Comment