• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to match bar type of addtional data series with primary series?

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

    How to match bar type of addtional data series with primary series?

    Hi,

    I'm trying to add an addtional data series in my indicator.

    AddDataSeries(Symbol, Data.BarsPeriodType.Minute, 1, Data.MarketDataType.Last);

    I need to match bar period type and market data type to whatever my primary series is. How should I code it?

    Thank you very much!

    #2
    Hello HiddenPhilosopher,

    Thank you for your post.

    The AddDataSeries(string instrumentName) overload allows loading a different instrument yet using the same BarsPeriod. This could not be supported for Strategy Analyzer use with the 'Optimize Data Series' option enabled, doing so may result in an error similar to: Unable to load bars series. Your NinjaScript may be trying to use an additional data series dynamically in an unsupported manner.

    However, this will default the added series to the same settings as the primary.

    Please let us know if we may be of further assistance to you.
    Kate W.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Darringona, Today, 07:43 AM
    0 responses
    3 views
    0 likes
    Last Post Darringona  
    Started by simonkloot, Today, 07:28 AM
    0 responses
    5 views
    0 likes
    Last Post simonkloot  
    Started by marcus2300, Today, 06:24 AM
    0 responses
    4 views
    0 likes
    Last Post marcus2300  
    Started by Dhjesus, Today, 06:23 AM
    0 responses
    7 views
    0 likes
    Last Post Dhjesus
    by Dhjesus
     
    Started by embreyw, Today, 05:56 AM
    0 responses
    5 views
    0 likes
    Last Post embreyw
    by embreyw
     
    Working...
    X