Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
AddDataSeries string
Collapse
X
-
AddDataSeries string
Hi, is it possible to call AddDataSeries using either a string variable holding a valid instrument name, or an expression that evaluates to a string that is a valid instrument name? Thanks...Tags: None
-
Hello stephensams,
Thank you for your post.
It is possible to pass a string into the AddDataSeries() method. For information on AddDataSeries please visit the following link: http://ninjatrader.com/support/helpG...dataseries.htm
-
Great, thanks. I realized I have a different issue...
I have a Market Analyzer row in the instrument column populated with ES ##-##. The second column finds the highest volume among the continuous contract Instrument.MasterInstrument.RolloverCollection elements (e.g. ES 03-16, since it's heaviest traded at the moment).
I don't think I can AddDataSeries in State.Configure using Instrument.MasterInstrument since ES ##-## hasn't loaded yet. If this is true, can I AddDataSeries in a later State, or elsewhere, like OnMarketData?
If I can't, can you think of another way to access volume data (Series, VolumeSeries) in OnMarketData?
Thanks so much...Last edited by stephensams; 01-12-2016, 03:01 PM.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by mly916, Today, 09:48 PM
|
0 responses
9 views
0 likes
|
Last Post
by mly916
Today, 09:48 PM
|
||
Started by Mikey_, Today, 09:21 PM
|
0 responses
11 views
0 likes
|
Last Post
by Mikey_
Today, 09:21 PM
|
||
Started by cre8able, Today, 05:53 PM
|
3 responses
13 views
0 likes
|
Last Post
by cre8able
Today, 09:20 PM
|
||
Started by Aryan Kumar, Today, 09:04 PM
|
0 responses
4 views
0 likes
|
Last Post
by Aryan Kumar
Today, 09:04 PM
|
||
Started by yertle, Yesterday, 05:49 PM
|
3 responses
16 views
0 likes
|
Last Post
by Mindset
Today, 08:38 PM
|
Comment