Highest close? or highest value in series of x bars?

Posted By: swingtraderkk

Highest close? or highest value in series of x bars? - 06/24/13 13:59

I can't seem to find a highest/lowest function that returns the highest value in a series of x bars.

Clearly HH & LL work for the highest high and lowest low of x bars, but I want to get the highest (and lowest) value of closing prices for the x bars.
Posted By: jcl

Re: Highest close? or highest value in series of x bars? - 06/24/13 15:03

Use MaxVal and MinVal with a Close series.
Posted By: swingtraderkk

Re: Highest close? or highest value in series of x bars? - 06/24/13 16:53

Great thanks jcl,

How do I exclude priceClose[0] and get the Maxval of priceClose[1] to [8].

Sorry, I'm used to metatrader, where you specify the bar you want to lookback from and the number of bars to lookback.
Posted By: jcl

Re: Highest close? or highest value in series of x bars? - 06/24/13 17:12

For excluding priceClose(0), add a 1-bar shift (+1). Series are explained here: http://manual.zorro-trader.com/series.htm

© 2024 lite-C Forums