HOLA BUENOS DIAS, SE PODRIA HACER UN BUSCADOR EN SEMANAL Y EN DIARIO DE ESTE INDICADOR, EN EL MOMENTO QUE CRUCE AL ALZA.
// — PARÁMETROS —
// Media Móvil Lenta
lenLenta = 200
// Media Móvil Rápida
lenRapida = 50
// RSI
lenRSI = 14
// — CÁLCULO DE INDICADORES —
// Medias Móviles Exponenciales (EMA)
emaLenta = ExponentialAverage[lenLenta](close)
emaRapida = ExponentialAverage[lenRapida](close)
// RSI
myRSI = RSI[lenRSI](close)
// — VISUALIZACIÓN EN GRÁFICO —
plot1 = emaLenta
plot2 = emaRapida
// — LÓGICA DE TENDENCIA (Ejemplo básico) —
tendenciaAlcista = (close > emaLenta) AND (emaRapida > emaLenta) AND (myRSI > 50)
tendenciaBajista = (close < emaLenta) AND (emaRapida < emaLenta) AND (myRSI < 50)
// Pintar el fondo según la tendencia
IF tendenciaAlcista THEN
BACKGROUNDCOLOR(0,255,0,50) // Verde claro
ELSIF tendenciaBajista THEN
BACKGROUNDCOLOR(255,0,0,50) // Rojo claro
ENDIF
RETURN plot1 AS “EMA Lenta”, plot2 AS “EMA Rápida”
Ahí está:
// — PARÁMETROS —
// Media Móvil Lenta
lenLenta = 200
// Media Móvil Rápida
lenRapida = 50
// RSI
//lenRSI = 14
// — CÁLCULO DE INDICADORES —
// Medias Móviles Exponenciales (EMA)
emaLenta = ExponentialAverage[lenLenta](close)
emaRapida = ExponentialAverage[lenRapida](close)
// RSI
//myRSI = RSI[lenRSI](close)
// — VISUALIZACIÓN EN GRÁFICO —
plot1 = emaLenta
plot2 = emaRapida
// — LÓGICA DE TENDENCIA (Ejemplo básico) —
//tendenciaAlcista = (close > emaLenta) AND (emaRapida > emaLenta) AND (myRSI > 50)
//tendenciaBajista = (close < emaLenta) AND (emaRapida < emaLenta) AND (myRSI < 50)
// Pintar el fondo según la tendencia
//IF tendenciaAlcista THEN
//BACKGROUNDCOLOR(0,255,0,50) // Verde claro
//ELSIF tendenciaBajista THEN
//BACKGROUNDCOLOR(255,0,0,50) // Rojo claro
//ENDIF
Cond = (plot2 > plot1) AND (plot2 > plot2[1])
//RETURN plot1 AS "EMA Lenta", plot2 AS "EMA Rápida"
screener[Cond AND (high > low)]
Muchas gracias roberto, lo probare