Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to Acces the Value of Range Bars?

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

    How to Acces the Value of Range Bars?

    Hi,

    I want to acces the value of Range Type chart in an indicator.

    For example, I want to use this value in some formulas and I want the indicator to use this parameter: when I have my indicator on 10 Range Chart, I want to use number 10 in my formula, when I have 5 Range, I want to use number 5 in that formula and so on.

    Is there a method to get this parameter in my script?

    Thank you.

    #2
    Hello SymeBB,

    Yes, you can work with multiseries scripts in indicators, including range bars. There is a sample multiTimeFrame indicator available from the Tools > Edit NinjaScript > Strategy section. The Add() line for range bars will look like:
    Add(PeriodType.Range, 5);

    Ryan M.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    176 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    93 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    130 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    210 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    186 views
    0 likes
    Last Post CarlTrading  
    Working...
    X