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 cmoran13, 04-16-2026, 01:02 PM
    0 responses
    43 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    25 views
    0 likes
    Last Post PaulMohn  
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    162 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    98 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    158 views
    2 likes
    Last Post CaptainJack  
    Working...
    X