Both of highest() and hhv() are documented as:
* as being "new in EFS2",
* parameters ( numBars, series )
* example purpose //find the highest-high over the last 50 bars
So what is the difference?
But nether is shown taking an nCandle argument. So if I want the one bar previous value (ie nCandle = -1 normally) of a highest() series do I use offsetSeries()?
I've not used offsetSeries before, is it the proper way to do it, say, of the highest over 5 bars of an ema(10)? ?
n = offsetSeries(highest(5,ema(10)),1);
or as highest() presumably returns a series, should I use
n = highest(5,ema(10)).getValue(-1);
If the latter is correct, what is the point of offsetSeries()?
Thanks
* as being "new in EFS2",
* parameters ( numBars, series )
* example purpose //find the highest-high over the last 50 bars
So what is the difference?
But nether is shown taking an nCandle argument. So if I want the one bar previous value (ie nCandle = -1 normally) of a highest() series do I use offsetSeries()?
I've not used offsetSeries before, is it the proper way to do it, say, of the highest over 5 bars of an ema(10)? ?
n = offsetSeries(highest(5,ema(10)),1);
or as highest() presumably returns a series, should I use
n = highest(5,ema(10)).getValue(-1);
If the latter is correct, what is the point of offsetSeries()?
Thanks
Comment