TNTrader5159
Active member
How would I calculate the number of bars since a lower low vs the present bar? I take it to subtract the bar number of that most recent occurrence of a lower low from the current bar number to determine the range. I do not know how to write that, and the official tutorials are not indicative enough to my somewhat untrained eye.
Then I would also want to calculate the number of bars since both the highest and lowest prices within that range (assuming it is big enough to be worth counting, which I already know how to qualify). I believe HighestAll would be in order, but again I am unsure of the parameters of that function.
The objective is to find low and high pivot points and measure the number of bars higher/lower on each side AND find the relative locations of the highest and lowest prices within each of those ranges going back until the most recent occurrence of a lower/higher price that would truncate the range.
Please enlighten me with my advance thanks!
Matt
Then I would also want to calculate the number of bars since both the highest and lowest prices within that range (assuming it is big enough to be worth counting, which I already know how to qualify). I believe HighestAll would be in order, but again I am unsure of the parameters of that function.
The objective is to find low and high pivot points and measure the number of bars higher/lower on each side AND find the relative locations of the highest and lowest prices within each of those ranges going back until the most recent occurrence of a lower/higher price that would truncate the range.
Please enlighten me with my advance thanks!
Matt