Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
High of last N bars , excluding currentbar.
Collapse
X
-
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];
-
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];
Tags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by pmachiraju, 11-01-2023, 04:46 AM
|
8 responses
147 views
0 likes
|
Last Post
by rehmans
Today, 06:44 PM
|
||
Started by mattbsea, Today, 05:44 PM
|
0 responses
5 views
0 likes
|
Last Post
by mattbsea
Today, 05:44 PM
|
||
Started by RideMe, 04-07-2024, 04:54 PM
|
6 responses
33 views
0 likes
|
Last Post
by RideMe
Today, 05:31 PM
|
||
Started by tkaboris, Today, 05:13 PM
|
0 responses
5 views
0 likes
|
Last Post
by tkaboris
Today, 05:13 PM
|
||
Started by GussJ, 03-04-2020, 03:11 PM
|
16 responses
3,282 views
0 likes
|
Last Post
by Leafcutter
Today, 04:14 PM
|
Leave a comment: