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 SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    31 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    20 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    9 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    17 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    20 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X