ProRealTime provides vertically shifted Moving Averages. They can be useful to build channels.
Can anyone show me how to reference the price touching one of them (say a 20-period SMA shifted + 0.25% and another one shifted -0.25%)?
Thank you.
There are no built-in instructions to reference “envelopes” indicator, you have to recode it yourself. Just coded this version with your settings:
// parameters
p = 20
dev = 0.25 //deviation in percent
ma = average[p](close)
devhi = ma+((dev/100)*ma)
devlo = ma-((dev/100)*ma)
RETURN devhi as "deviation high", devlo as "deviation low"
Hope it works ok for your needs.