Thisi indicator counts the number of consecutive Higher Highs, or , Lower Lows Bars.
if high[period] > high[period-1] then
HigerHighsCount[period] = HigerHighsCount[period-1] +1;
else
HigerHighsCount[period] =0
end
if low[period] < low[period-1] then
LowerLows[period] = LowerLows[period-1] +1;
else
LowerLowsCount[period] =0
end
- HiLo.lua
- (1.59 KiB) Downloaded 716 times
The indicator was revised and updated