This adaptive Enveloppe indicator adjusts automatically its upper and lower bands with a percentage of price set with the higher high and lower low of the last 10 periods (you can adjust this lookback period with the “p” variable in the code).
p = 10
c1 = highest[p](high) - lowest[p](low)
c2 = c1/2
p2 = p*1
c4 = Average[p2](c2)
c5 = Average[p](close)
c6 = Average[p](close) + c4
c7 = Average[p](close) - c4
return c5, c6, c7
You must be logged in to post a comment.
Hi im looking for some help to put a automated code together BUY ORDER If EMA 10/25 is BELOW Dounchain Channel Middle THEN place BUY order when candle stick hits Dounchain Channel DOWN. Close order when NEXT candle Stick hits EMA 10 SELL ORDER If EMA 10/25 is ABOVE Dounchain Channel Middle THEN place SELL order when candle stick hits Dounchain Channel UP. Close order when NEXT candle stick hits EMA 10
Thank you! Great tool!