• 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

current data series period type and value

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

    current data series period type and value

    hi - I need to call Add to add an instrument in the Initialize section of an indicator. Is it possible to access the current period type and value (of the chart the indicator is on)?

    Onn

    #2
    HI onnb1,

    It is not supported to do this, however, use:

    BarsPeriod.Id and BarsPeriod.Value.

    For example:

    Add(Instrument.FullName, BarsPeriod.Id, BarsPeriod.Value);

    This would add the same instrument as the primary.

    Below is a link to the help guide on BarsPeriod.
    http://www.ninjatrader.com/support/h...barsperiod.htm
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Leeroy_Jenkins, Today, 06:54 AM
    0 responses
    2 views
    0 likes
    Last Post Leeroy_Jenkins  
    Started by rainbow47, Today, 06:10 AM
    0 responses
    7 views
    0 likes
    Last Post rainbow47  
    Started by stenberg98, Today, 04:53 AM
    2 responses
    7 views
    0 likes
    Last Post NinjaTrader_Marco  
    Started by wukefuha, Today, 03:20 AM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_Marco  
    Started by mbcmbc, Yesterday, 10:12 PM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_ChrisSch  
    Working...
    X