OleeDee

EMA TUNNEL

This is the base for my strategy. Just look at it youll figure it out ;) if you have any question feel free to direct them to me
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?
study(title="EMA TUNNEL", shorttitle="EMA TUNNEL", overlay=true)

src = close 

len1 = input(12, minval=1, title="Length")
len2 = input(144, minval=1, title="Length")
len3 = input(169, minval=1, title="Length")

out1 = ema(src, len1)
out2 = ema(src, len2)
out3 = ema(src, len3)


bound_a = plot(out1, title="EMA", color=yellow, linewidth=2)
bound_b = plot(out2, title="EMA", color=green, linewidth=2)
bound_c = plot(out3, title="EMA", color=red, linewidth=2)


colorsense = out3<=out2 ? lime : red



plot(cross(out1, out2) ? out2 : na, title="GOTCHA", style=cross, color=colorsense, linewidth=3) 

// fill(bound_a, bound_b, color=yellow, transp=70) 

// BROKEN DONT ENABLE - TUNNEL FILL ->  fill(bound_b, bound_c, color=white, transp=75)