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).
1 2 3 4 5 6 7 8 9 |
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 |
Share this
No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.
ProRealTime ITF files and other attachments :
Filename : download the ITF files
How to import ITF files into ProRealTime platform?
PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials
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!