Hi,
I am new to prorealtime, I just wanted to ask if there is an indicator that will highlight narrow range candles.
I would like to highlight NR4,7,21 candles. Any guidance would be appreciated.
Thanks
I’d never heard of that so I made it.
if barindex >= 23 then
i = 1
while (range[1] < range[1+i]) and i <= 21
i = i + 1
wend
if i = 4 then
DRAWTEXT("4", barindex[1], high[1]*1.0002) coloured("pink",192)
elsif i = 7 then
DRAWTEXT("7", barindex[1], high[1]*1.0002) coloured("pink",192)
elsif i = 21 then
DRAWTEXT("21", barindex[1], high[1]*1.0002) coloured("pink",192)
endif
endif
return
Rewrote nonsense point and add inside bar
i = 1
while (range[1] < range[1+i])
i = i + 1
wend
if i >= 4 and high[1] < high[2] and low[1] > low[2] then
DRAWTEXT("□", barindex[1], high[1]*1.0002,dialog,standard,18) coloured("pink",192)
endif
if i >= 21 then
DRAWTEXT("21", barindex[1], high[1]*1.0002) coloured("pink",192)
elsif i >= 7 then
DRAWTEXT("7", barindex[1], high[1]*1.0002) coloured("pink",192)
elsif i >= 4 then
DRAWTEXT("4", barindex[1], high[1]*1.0002) coloured("pink",192)
endif
return