Im having trouble understanding the difference between ref() and getValue.
I would like to know if the high for the current bar is >= the high for the previous 10 bars.
When i caclulate
high() >= Highest(10, high())
Highest(10,high()) seems to include the current bar.
In Metastock, I would write ref( Highest(10, high()), -1) , but the documentation for ref() has no example like that.
I see that getValue has a 'nOffset' parm but I doesn't look like I can put Highest(..) as the bar type.
I would like to know if the high for the current bar is >= the high for the previous 10 bars.
When i caclulate
high() >= Highest(10, high())
Highest(10,high()) seems to include the current bar.
In Metastock, I would write ref( Highest(10, high()), -1) , but the documentation for ref() has no example like that.
I see that getValue has a 'nOffset' parm but I doesn't look like I can put Highest(..) as the bar type.
Comment