OPEN-SOURCE SCRIPT

Scalping EMA9 + Breakout (5m - 24h)

112
//version=6
indicator("Scalping US100 - EMA9 Breakout", overlay=true)

ema9 = ta.ema(close, 9)
plot(ema9, color=color.orange, title="EMA9")

// Condições de rompimento
breakout_up = close > high[1] and close > ema9
breakout_down = close < low[1] and close < ema9

// Plotar sinais visuais
plotshape(breakout_up, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
plotshape(breakout_down, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")

// Alerta para Webhook
alertcondition(breakout_up, title="Buy Alert", message="BUY - US100 🚀")
alertcondition(breakout_down, title="Sell Alert", message="SELL - US100 🔻")

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.