So I found an alternative on prorealcode that displays an on chart ATR range above and below price, but it doesn’t discount the weekend data. Anyway to remove the weekend data without actually removing the weekend candles from view? thanks
defparam drawonlastbaronly=true
// --- parameters
ATRperiod = 20
// ---
if intradaybarindex=0 then
begin=barindex
reset=0
dTR = 0
endif
if reset=0 then
for i = 1 to ATRperiod
dTR=dTR+max(abs(Dhigh(i)-Dlow(i)),max(abs(Dhigh(i)-Dclose(i+1)),abs(Dlow(i)-Dclose(i+1))))
next
reset=1
endif
avg = dTR/ATRperiod
converted = round(avg/pointsize*10)/10
htr = Dopen(0)+avg[1]
ltr = Dopen(0)-avg[1]
drawsegment(begin,htr,barindex,htr) coloured(255,255,0)
drawsegment(begin,htr+20*pointsize,barindex,htr+20*pointsize) coloured(255,0,0)
drawtext("#htr# - (D1atr: #converted#)",barindex,htr+10*pointsize,Dialog,Bold,10) coloured(255,0,0)
drawsegment(begin,ltr,barindex,ltr) coloured(255,255,0)
drawsegment(begin,ltr-20*pointsize,barindex,ltr-20*pointsize) coloured(0,255,0)
drawtext("#ltr# - (D1atr: #converted#)",barindex,ltr-10*pointsize,Dialog,Bold,10) coloured(255,0,0)
drawsegment(begin,Dopen(0),barindex,Dopen(0)) coloured(255,250,250)
return