I'm a NT newbie and trying to create a simple formula for calculating the slope value of the Highest Highs.
What I can't figure, however, is how I can extract the number of bar. With the HighestBar() method I can get the number of bars within the lookback period, but how can I get the number of bars ago for the period preceding the current one?
Below is the formula (currently not working) for what I am trying to do:
Slope1= Slope((MAX(High,ratio)[0]-MAX(High,ratio)[ratio]),1,0);
here's I am calculating the Highest High for the current period (say, 5 bars - from 0 to 4th) and the HH for the period from 5th to 9th.
Generally speaking, what is there universal method for getting time stamp or # of bars ago for given event?
Thanks!
Comment