Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to figure out the interval of the underlying price data

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

    How to figure out the interval of the underlying price data

    Hello,
    I want to write an indicator in which I need to determine the type(minute, daily, etc) and interval of the underlying price data. If it's not of a certain type and interval, I want to throw an error text on the chart. How do I programmatically in an Indicator determine the type and interval?

    Thanks,
    PK

    #2
    PK,

    You can try using BarsPeriod.Id and .Value.
    Josh P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    619 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    420 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    293 views
    1 like
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    415 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    367 views
    0 likes
    Last Post CarlTrading  
    Working...
    X