Aprizm1

EMA 1h Tunnel Detector 1

6
this is my 1h tunnel strat test
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 1h Tunnel Detector", shorttitle="EMA CROSS SIGNAL", overlay=true)
ema1_len=144
ema2_len=169
ema3_len=16



out1 = ema(close, ema1_len)
out2 = ema(close, ema2_len)
out3 = ema(close, ema3_len)

out = cross(out1, out3)
outb = cross(out2, out3)
outc = cross(close,out3)


plot((out2 - 0.0015), title="sell signal", color=orange)
plot((out1 + 0.0015), title="buy signal", color=blue)
plot(out2, title="ema169", color=red)
plot(out1, title="ema144", color=green)
plot(out3, title="ema12", color=yellow)
plot(out ? out1 : na, linewidth=4, style=cross, color=lime)
plot(outb ? out2 : na, linewidth=4, style=cross, color=red)


plot(outc ? out3 : na, linewidth=4, style=cross, color=blue)