OPEN-SOURCE SCRIPT
REBOTE PRO EMA

//version=5
indicator(title="REBOTE PRO EMA", overlay=true)
// === CONFIGURACIÓN ===
emaRapida = input.int(20, "EMA Rápida")
emaLenta = input.int(50, "EMA Lenta (Tendencia)")
rsiPeriodo = input.int(14, "RSI Periodo")
// === CÁLCULOS ===
emaFast = ta.ema(close, emaRapida)
emaSlow = ta.ema(close, emaLenta)
rsiVal = ta.rsi(close, rsiPeriodo)
// === CONDICIONES DE TENDENCIA ===
tendenciaAlcista = emaFast > emaSlow
tendenciaBajista = emaFast < emaSlow
// === CONDICIONES DE REBOTE ===
reboteBuy = tendenciaAlcista and low <= emaFast and close > emaFast and rsiVal > 40
reboteSell = tendenciaBajista and high >= emaFast and close < emaFast and rsiVal < 60
// === GRÁFICOS ===
plot(emaFast, color=color.orange, linewidth=2)
plot(emaSlow, color=color.red, linewidth=2)
// === SEÑALES ===
plotshape(reboteBuy,
title="BUY",
style=shape.triangleup,
location=location.belowbar,
color=color.lime,
size=size.small)
plotshape(reboteSell,
title="SELL",
style=shape.triangledown,
location=location.abovebar,
color=color.red,
size=size.small)
indicator(title="REBOTE PRO EMA", overlay=true)
// === CONFIGURACIÓN ===
emaRapida = input.int(20, "EMA Rápida")
emaLenta = input.int(50, "EMA Lenta (Tendencia)")
rsiPeriodo = input.int(14, "RSI Periodo")
// === CÁLCULOS ===
emaFast = ta.ema(close, emaRapida)
emaSlow = ta.ema(close, emaLenta)
rsiVal = ta.rsi(close, rsiPeriodo)
// === CONDICIONES DE TENDENCIA ===
tendenciaAlcista = emaFast > emaSlow
tendenciaBajista = emaFast < emaSlow
// === CONDICIONES DE REBOTE ===
reboteBuy = tendenciaAlcista and low <= emaFast and close > emaFast and rsiVal > 40
reboteSell = tendenciaBajista and high >= emaFast and close < emaFast and rsiVal < 60
// === GRÁFICOS ===
plot(emaFast, color=color.orange, linewidth=2)
plot(emaSlow, color=color.red, linewidth=2)
// === SEÑALES ===
plotshape(reboteBuy,
title="BUY",
style=shape.triangleup,
location=location.belowbar,
color=color.lime,
size=size.small)
plotshape(reboteSell,
title="SELL",
style=shape.triangledown,
location=location.abovebar,
color=color.red,
size=size.small)
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.