PDA

View Full Version : Maxlist function


Winnie
03-19-2009, 01:17 AM
Would anyone help me how to plot the max range(H-L) of the last 3 bar ? Is there any maxlist or minlist function ?
I try to use this but it does not work :
Max(Range(),3)

Thanks

NinjaTrader_Bertrand
03-19-2009, 02:31 AM
Hi Winnie, please try this snippet-

double myRange = MAX(Range(), 3)[0];

Winnie
03-19-2009, 10:38 AM
it works well ! thanks