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 Hwop38, 05-04-2026, 07:02 PM
    0 responses
    161 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    309 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    245 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    349 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    179 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Working...
    X