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 morrnel, Yesterday, 09:12 PM
1 response
9 views
0 likes
Last Post NinjaTrader_Jason  
Started by 7robert, Yesterday, 04:41 PM
1 response
10 views
0 likes
Last Post NinjaTrader_Jason  
Started by soon123, Yesterday, 08:07 PM
0 responses
8 views
0 likes
Last Post soon123
by soon123
 
Started by vantojo, Yesterday, 06:49 PM
1 response
13 views
0 likes
Last Post vantojo
by vantojo
 
Started by GauthamK, Yesterday, 03:47 PM
2 responses
22 views
0 likes
Last Post GauthamK  
Working...
X