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!
See more
See less

Partner 728x90

Collapse

AddDataSeries string

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • NinjaTrader_ChelseaB
    replied
    Hello stephensams,

    This will need to be done by doing a BarsRequest for data and subscribing to an event handler for the BarsRequest.Update.

    Attached is an example.
    Attached Files

    Leave a comment:


  • stephensams
    replied
    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.

    Leave a comment:


  • NinjaTrader_PatrickH
    replied
    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

    Leave a comment:


  • stephensams
    started a topic AddDataSeries string

    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...

Latest Posts

Collapse

Topics Statistics Last Post
Started by sofortune, Today, 02:31 AM
0 responses
7 views
0 likes
Last Post sofortune  
Started by sofortune, Today, 01:55 AM
1 response
5 views
0 likes
Last Post sofortune  
Started by cls71, Today, 01:37 AM
0 responses
8 views
0 likes
Last Post cls71
by cls71
 
Started by WHICKED, 06-27-2023, 12:07 PM
63 responses
764 views
1 like
Last Post Leeroy_Jenkins  
Started by rtwave, Today, 12:10 AM
0 responses
6 views
0 likes
Last Post rtwave
by rtwave
 
Working...
X