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

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

    Leave a comment:


  • 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!

Latest Posts

Collapse

Topics Statistics Last Post
Started by ArmKnuckle, Today, 10:02 PM
0 responses
5 views
0 likes
Last Post ArmKnuckle  
Started by jeronymite, Today, 08:29 PM
1 response
6 views
0 likes
Last Post NinjaTrader_EricB  
Started by soon123, Today, 07:38 PM
2 responses
9 views
0 likes
Last Post soon123
by soon123
 
Started by ser1es, Today, 04:26 PM
1 response
18 views
0 likes
Last Post NinjaTrader_ShawnB  
Started by ErikY, Today, 02:14 PM
1 response
15 views
0 likes
Last Post NinjaTrader_BrandonH  
Working...
X