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 Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    590 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    342 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    103 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    555 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    552 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X