pdrhParticipant
Average
Does anyone have coding to find when the PRT Bands Short Term line changes colour
The PRT Bands code is ProrealTime's own, so it is not published. Anyway you just have to do a few tests to see what type of moving average it is. I've been testing and I see that it is a 4-period weighted moving average.
wma=weightedaverage[4](close)
green=roc[1](wma)>0
red=roc[1](wma)<0
if green and red[1] then
drawarrowup(barindex,low)
elsif red and green[1] then
drawarrowdown(barindex,high)
endif
return wma