Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Range bar close price

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

    Range bar close price

    Im trying to program an indicator that displays the current range bar anticipated close price. lets say new range bar just started and its up bar now i want to see what would be the price it would close at. e.g range bar opened at 90.00 and its a .09 range bar chart, the indicator should display a value as 90.09. as range bar forms, the close should dynamically change as close price could change depending on range bar movement.

    i only care the current bar value and want to display the value right below current bar. below is what i came up with and its not working. I'm new to programming, can some one please help, please....

    Thanks
    Chak.

    protected override void Initialize()
    {
    Add(new Plot(Color.FromKnownColor(KnownColor.Orange), PlotStyle.Line, "Plot0"));
    ChartOnly = true;
    Overlay = true;
    CalculateOnBarClose = false;
    }

    /// <summary>
    /// Called on each bar update event (incoming tick)
    /// </summary>
    protected override void OnBarUpdate()
    {
    // Use this method for calculating your indicator values. Assign a value to each
    // plot below by replacing 'Close[0]' with your own formula.
    Value.Set((RangeCounter(true)[0] + Last[0]));
    }

    #2
    chakriare, there are already a few versions of this indicator available on the forum. The first one I could find was developed by eDanny, and can be found on his website. It is called RangeBarTargets and I've attached it for your convenience.
    Attached Files
    AustinNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    579 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    334 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    554 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    551 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X