Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

High of last N bars , excluding currentbar.

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

  • NinjaTrader_PaulH
    replied
    Hello shishir_nse,

    Thanks for your post.

    To exclude the current bar, change the barsago from 0 to 1.

    var periodHigh = MAX(High,period)[1];

    Leave a comment:


  • shishir_nse
    started a topic High of last N bars , excluding currentbar.

    High of last N bars , excluding currentbar.

    Hi ,
    I want to calculate High of last N bars , excluding the latest bar , please help.

    I am using the below code but it's including the last bar.


    var periodHigh = MAX(High,period)[0];

Latest Posts

Collapse

Topics Statistics Last Post
Started by pmachiraju, 11-01-2023, 04:46 AM
8 responses
147 views
0 likes
Last Post rehmans
by rehmans
 
Started by mattbsea, Today, 05:44 PM
0 responses
5 views
0 likes
Last Post mattbsea  
Started by RideMe, 04-07-2024, 04:54 PM
6 responses
33 views
0 likes
Last Post RideMe
by RideMe
 
Started by tkaboris, Today, 05:13 PM
0 responses
5 views
0 likes
Last Post tkaboris  
Started by GussJ, 03-04-2020, 03:11 PM
16 responses
3,282 views
0 likes
Last Post Leafcutter  
Working...
X