OPEN-SOURCE SCRIPT

Scalping EMA9 + Breakout (5m - 24h)

94
//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 🔻")

Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.