Indicador para futuros MNQ/NQ en la apertura de Nueva York (primeros 45–60 min) que detecta señales STRONG no repintables mediante alineación de EMAs, pullback, ADX >= 22, volumen y filtro de noticias.

Evita operar ruido lateral, falsos rebotes y jornadas de noticias de alto impacto después de los primeros 45–60 minutos de Nueva York, imponiendo disciplina automática con un máximo de 2 señales STRONG diarias y panel de estado en tiempo real.
Evalúa el impulso direccional dentro de la ventana de apertura de Nueva York (09:30 EST durante 45 min, máx. 60 min) en temporalidades de 1m a 5m. Exige alineación de EMAs (9, 21 y 50) con separación mínima respecto al ATR(14), pendiente direccional de la EMA rápida, retroceso en las últimas 5 velas y vela de recuperación con ruptura del extremo previo (HH/LL), todo validado por volumen > SMA(20), ATR% <= 2.0%, ADX >= 22 y dominio DI+/DI-. Al cierre confirmado (barstate.isconfirmed) fija STRONG↑ o STRONG↓ sin repintado, tras mostrar un aviso intrabar previo ("pre STRONG") para preparar la orden definiendo el Stop Loss en el alto/bajo previo y buscando un mínimo de 1:1.
| Parámetro | Valor Sugerido | Descripción |
|---|---|---|
| Ventana operativa NY | 09:30 EST · 45 min (máx. 60) | Duración desde la apertura de Nueva York en la que el indicador habilita señales. |
| Máx. señales STRONG / día | 2 señales (1 recomendada) | Límite diario estricto; la 2ª señal es opcional solo para traders con experiencia en tendencia fuerte. |
| EMAs & Tendencia (Fast/Mid/Slow) | 9 / 21 / 50 (ocultas por defecto) | Alineación de medias, lookback de pullback (5 velas), cooldown (6 velas) y ruptura HH/LL opcional. |
| ADX Mínimo & DI | ADX(14) >= 22.0 | Exige fuerza tendencial mínima, dominio DI+/DI-, pendiente >= 0.03 ATR y separación >= 0.10 ATR. |
| Filtros Volumen & ATR% | Vol > SMA(20) · ATR% <= 2.0% | Valida volumen superior a la media de 20 velas y descarta exceso de volatilidad extrema. |
| Confirmación & Previews | Cierre de barra + pre STRONG | Evita repintado en señales confirmadas y emite alertas previas intrabar para preparar la ejecución. |
//@version=6
indicator("TREND REVERSAL PRO · NY OPEN STRONG", shorttitle="TR PRO", overlay=true, max_lines_count=500, max_labels_count=500)
// ─────────────────────────────────────────────────────────────────────────────
// Nasdaq futuros (MNQ / NQ) · Tendencia apertura NY · Timeframe recomendado: 1m - 5m
//
// REGLAS DE USO (el indicador las hace cumplir automáticamente):
// 1. Operar SOLO señales STRONG. Al ver "pre STRONG↑ / pre STRONG↓" -> preparar la entrada.
// 2. Solo en los primeros 45 min desde la apertura de NY (máximo 60 min).
// 3. Máximo 2 señales por día (la 2da solo si tienes experiencia promediando con tendencia fuerte).
// 4. EMAs opcionales (se activan en Ajustes si te sientes cómodo viéndolas).
// 5. Si no hay señal dentro del horario operativo -> NO operar ese día.
// 6. Evitar noticias de alto impacto (bloqueo manual / por horario).
//
// Sin repintar en señales confirmadas. Las etiquetas "pre" son intrabar (aviso previo).
// Regista tu journal en JLAPRO · jlapro.com ·
// Contacto: https://t.me/jla7786
// ─────────────────────────────────────────────────────────────────────────────
//──────────────────────────────────────────────────────────────────────────────
// 1. INPUTS
//──────────────────────────────────────────────────────────────────────────────
gTime = "1. HORARIO OPERATIVO (APERTURA NY)"
gDay = "2. LÍMITE DIARIO"
gEMA = "3. EMAs & TENDENCIA"
gFilt = "4. FILTROS (VOLUMEN & ATR)"
gStrong = "5. SEÑALES STRONG"
gNews = "6. FILTRO DE NOTICIAS"
gVis = "7. VISUALIZACIÓN"
gExec = "8. EJECUCIÓN"
// --- Horario
useTimeFilter = input.bool(true, "Habilitar Filtro Horario", group=gTime)
tzName = input.string("America/New_York", "Zona Horaria", group=gTime, tooltip="Usa America/New_York para que el horario de verano se ajuste solo.")
openH = input.int(9, "Hora apertura NY", minval=0, maxval=23, inline="open", group=gTime)
openM = input.int(30, "Min", minval=0, maxval=59, inline="open", group=gTime)
winMin = input.int(45, "Duración ventana operativa (min)", minval=15, maxval=60, step=5, group=gTime, tooltip="Recomendado 45. Máximo permitido 60.")
// --- Límite diario
maxSignals = input.int(2, "Máx. señales STRONG por día", minval=1, maxval=2, group=gDay, tooltip="La 2da señal solo si tienes experiencia promediando cuando la tendencia es fuerte.")
// --- EMAs
showEMAs = input.bool(false, "Mostrar EMAs en el gráfico (opcional)", group=gEMA)
lenFast = input.int(9, "Fast EMA", minval=2, group=gEMA)
lenMid = input.int(21, "Mid EMA", minval=3, group=gEMA)
lenSlow = input.int(50, "Slow EMA", minval=5, group=gEMA)
lookbackPullback = input.int(5, "Pullback Lookback (Barras)", minval=1, group=gEMA)
minBarsBetween = input.int(6, "Barras Mínimas Entre Señales", minval=1, group=gEMA)
requireBreak = input.bool(true, "Requerir Ruptura Extremo Bar Anterior (HH/LL)", group=gEMA)
// --- Filtros
useVolFilter = input.bool(true, "Filtro de Volumen (Vol > SMA)", inline="v", group=gFilt)
volLen = input.int(20, "Longitud SMA Vol", minval=1, inline="v", group=gFilt)
useAtrFilter = input.bool(true, "Filtro ATR% Máximo", inline="a", group=gFilt)
atrPctMax = input.float(2.0, "Máximo ATR% (ej. 2.0%)", step=0.1, minval=0.0, inline="a", group=gFilt)
// --- Strong
minSlopeATR = input.float(0.03, "Min Pendiente Fast EMA (x ATR)", step=0.01, group=gStrong)
minStackGap = input.float(0.10, "Min Sep. Entre EMAs (x ATR)", step=0.01, group=gStrong)
adxLen = input.int(14, "Longitud ADX", minval=5, inline="adx", group=gStrong)
adxMin = input.float(22.0, "ADX Mínimo para Strong", step=0.5, inline="adx", group=gStrong)
// --- Noticias
newsToday = input.bool(false, "HOY hay noticia de alto impacto (bloquea todo el día)", group=gNews, tooltip="Revisa el calendario económico antes de abrir. Si hay noticia fuerte, actívalo y no operes.")
useNews1 = input.bool(false, "Bloqueo horario 1", inline="n1", group=gNews)
news1 = input.session("0955-1010", "", inline="n1", group=gNews)
useNews2 = input.bool(false, "Bloqueo horario 2", inline="n2", group=gNews)
news2 = input.session("1000-1015", "", inline="n2", group=gNews)
// --- Visual
showCont = input.bool(false, "Mostrar CONT (no operables, solo referencia)", group=gVis)
showWindowBg = input.bool(true, "Sombrear ventana operativa", group=gVis)
showPanel = input.bool(true, "Mostrar panel de control", group=gVis)
panelPos = input.string("Top Right", "Posición del panel", options=["Top Right", "Bottom Right", "Top Left", "Bottom Left"], group=gVis)
showBrand = input.bool(true, "Show Watermark (badge)", group=gVis)
brandPos = input.string("Top Center", "Badge Position", options=["Bottom Center", "Top Center"], group=gVis)
showBigWm = input.bool(false, "Marca de agua grande (www.jlapro.com)", group=gVis)
// --- Ejecución
confirmOnClose = input.bool(true, "Confirmar Señales al Cierre de Barra", group=gExec)
showPreviews = input.bool(true, "Mostrar Etiquetas Intrabar (pre STRONG)", group=gExec)
alertPreview = input.bool(true, "Alerta en pre STRONG (preparar entrada)", group=gExec)
//──────────────────────────────────────────────────────────────────────────────
// 2. VENTANA OPERATIVA, DÍA Y NOTICIAS
//──────────────────────────────────────────────────────────────────────────────
startTot = openH * 60 + openM
endTot = startTot + winMin
endH = math.floor(endTot / 60)
endM = endTot % 60
sessStr = str.tostring(openH, "00") + str.tostring(openM, "00") + "-" + str.tostring(endH, "00") + str.tostring(endM, "00") + ":23456"
inWindow = not na(time(timeframe.period, sessStr, tzName))
inSession = not useTimeFilter or inWindow
winEndTs = timestamp(tzName, year(time, tzName), month(time, tzName), dayofmonth(time, tzName), endH, endM, 0)
minsLeft = inWindow ? math.max(0, math.round((winEndTs - time_close) / 60000)) : 0
inNews1 = not na(time(timeframe.period, news1, tzName))
inNews2 = not na(time(timeframe.period, news2, tzName))
newsBlock = newsToday or (useNews1 and inNews1) or (useNews2 and inNews2)
newDay = timeframe.change("D")
var int sigToday = 0
var bool windowClosedToday = false
if newDay
sigToday := 0
windowClosedToday := false
if not inWindow and inWindow[1]
windowClosedToday := true
limitOK = sigToday < maxSignals
tradeAllowed = inSession and not newsBlock and limitOK
//──────────────────────────────────────────────────────────────────────────────
// 3. CÁLCULOS CORE
//──────────────────────────────────────────────────────────────────────────────
emaF = ta.ema(close, lenFast)
emaM = ta.ema(close, lenMid)
emaS = ta.ema(close, lenSlow)
atrVal = ta.atr(14)
atrPct = (atrVal / close) * 100.0
volSma = ta.sma(volume, volLen)
volOK = not useVolFilter or (volume > volSma)
atrOK = not useAtrFilter or (atrPct <= atrPctMax)
f_adx(int len) =>
float upMove = high - nz(high[1], high)
float downMove = nz(low[1], low) - low
float plusDM = (upMove > 0 and upMove > downMove) ? upMove : 0.0
float minusDM = (downMove > 0 and downMove > upMove) ? downMove : 0.0
float prevC = nz(close[1], close)
float tr1 = math.max(high - low, math.max(math.abs(high - prevC), math.abs(low - prevC)))
var float trS = na
var float pS = na
var float mS = na
trS := na(trS[1]) ? tr1 : (trS[1] * (len - 1) + tr1) / len
pS := na(pS[1]) ? plusDM : (pS[1] * (len - 1) + plusDM) / len
mS := na(mS[1]) ? minusDM : (mS[1] * (len - 1) + minusDM) / len
float diPlus = trS == 0.0 ? 0.0 : 100.0 * pS / trS
float diMinus = trS == 0.0 ? 0.0 : 100.0 * mS / trS
float dx = (diPlus + diMinus) == 0.0 ? 0.0 : 100.0 * math.abs(diPlus - diMinus) / (diPlus + diMinus)
var float adxS = na
adxS := na(adxS[1]) ? dx : (adxS[1] * (len - 1) + dx) / len
[diPlus, diMinus, adxS]
[diP, diM, adxV] = f_adx(adxLen)
//──────────────────────────────────────────────────────────────────────────────
// 4. LÓGICA CONT / STRONG
//──────────────────────────────────────────────────────────────────────────────
stackBull = emaF > emaM and emaM > emaS
stackBear = emaF < emaM and emaM < emaS
slopeF = emaF - emaF[1]
slopeATR = atrVal > 0 ? (slopeF / atrVal) : 0.0
gapFM_atr = atrVal > 0 ? ((emaF - emaM) / atrVal) : 0.0
gapMS_atr = atrVal > 0 ? ((emaM - emaS) / atrVal) : 0.0
gapOKBull = (gapFM_atr > minStackGap) and (gapMS_atr > minStackGap)
gapOKBear = (-gapFM_atr > minStackGap) and (-gapMS_atr > minStackGap)
llLow = ta.lowest(low, lookbackPullback)
llClose = ta.lowest(close, lookbackPullback)
hhHigh = ta.highest(high, lookbackPullback)
hhClose = ta.highest(close, lookbackPullback)
pulledBackBull = (llLow <= emaM) or (llClose < emaF)
pulledBackBear = (hhHigh >= emaM) or (hhClose > emaF)
reclaimBull = close > emaF and close > open
reclaimBear = close < emaF and close < open
breakOKBull = not requireBreak or high > high[1]
breakOKBear = not requireBreak or low < low[1]
rawLong = stackBull and (slopeF >= 0) and pulledBackBull and reclaimBull and breakOKBull and volOK and atrOK and tradeAllowed
rawShort = stackBear and (slopeF <= 0) and pulledBackBear and reclaimBear and breakOKBear and volOK and atrOK and tradeAllowed
var int lastLongBar = -1000000
var int lastShortBar = -1000000
cooldownLongOK = (bar_index - lastLongBar) > minBarsBetween
cooldownShortOK = (bar_index - lastShortBar) > minBarsBetween
baseLong = rawLong and cooldownLongOK
baseShort = rawShort and cooldownShortOK
strongLong = baseLong and (adxV >= adxMin) and gapOKBull and (diP > diM) and (slopeATR > minSlopeATR)
strongShort = baseShort and (adxV >= adxMin) and gapOKBear and (diM > diP) and (-slopeATR > minSlopeATR)
longFinal = confirmOnClose ? (baseLong and barstate.isconfirmed) : baseLong
shortFinal = confirmOnClose ? (baseShort and barstate.isconfirmed) : baseShort
strongLongFinal = confirmOnClose ? (strongLong and barstate.isconfirmed) : strongLong
strongShortFinal = confirmOnClose ? (strongShort and barstate.isconfirmed) : strongShort
if longFinal
lastLongBar := bar_index
if shortFinal
lastShortBar := bar_index
// Contador diario: solo las STRONG consumen el cupo
if strongLongFinal or strongShortFinal
sigToday += 1
//──────────────────────────────────────────────────────────────────────────────
// 5. VISUALIZACIÓN
//──────────────────────────────────────────────────────────────────────────────
emaDisp = showEMAs ? display.all : display.none
plot(emaF, "EMA Fast", color=color.aqua, linewidth=2, display=emaDisp)
plot(emaM, "EMA Mid", color=color.orange, linewidth=2, display=emaDisp)
plot(emaS, "EMA Slow", color=color.purple, linewidth=2, display=emaDisp)
bgcolor(showWindowBg and inWindow and not newsBlock ? color.new(color.blue, 93) : na, title="Ventana operativa")
bgcolor(showWindowBg and inWindow and newsBlock ? color.new(color.red, 85) : na, title="Bloqueo por noticia")
// Confirmadas
plotshape(strongLongFinal, title="STRONG BULLISH", style=shape.labelup, location=location.belowbar, text="STRONG↑", color=color.green, textcolor=color.white, size=size.small)
plotshape(strongShortFinal, title="STRONG BEARISH", style=shape.labeldown, location=location.abovebar, text="STRONG↓", color=color.red, textcolor=color.white, size=size.small)
plotshape(showCont and longFinal and not strongLongFinal, title="BULLISH CONT", style=shape.labelup, location=location.belowbar, text="CONT↑", color=color.lime, textcolor=color.white, size=size.tiny)
plotshape(showCont and shortFinal and not strongShortFinal, title="BEARISH CONT", style=shape.labeldown, location=location.abovebar, text="CONT↓", color=color.maroon, textcolor=color.white, size=size.tiny)
// Previews (intrabar): aviso para preparar la entrada
previewStrongLong = confirmOnClose and showPreviews and strongLong and not barstate.isconfirmed
previewStrongShort = confirmOnClose and showPreviews and strongShort and not barstate.isconfirmed
plotshape(previewStrongLong, title="PREVIEW STRONG BULL", style=shape.labelup, location=location.belowbar, text="pre STRONG↑", color=color.new(color.green, 55), textcolor=color.white, size=size.small)
plotshape(previewStrongShort, title="PREVIEW STRONG BEAR", style=shape.labeldown, location=location.abovebar, text="pre STRONG↓", color=color.new(color.red, 55), textcolor=color.white, size=size.small)
//──────────────────────────────────────────────────────────────────────────────
// 6. ALERTAS
//──────────────────────────────────────────────────────────────────────────────
string tag = syminfo.ticker + " " + timeframe.period
if alertPreview and previewStrongLong
alert(tag + " | ⚠ PREPARAR COMPRA (pre STRONG↑) @ " + str.tostring(close, format.mintick), alert.freq_once_per_bar)
if alertPreview and previewStrongShort
alert(tag + " | ⚠ PREPARAR VENTA (pre STRONG↓) @ " + str.tostring(close, format.mintick), alert.freq_once_per_bar)
if strongLongFinal
alert(tag + " | STRONG LONG @ " + str.tostring(close, format.mintick) + " | Señal " + str.tostring(sigToday) + "/" + str.tostring(maxSignals), alert.freq_once_per_bar)
if strongShortFinal
alert(tag + " | STRONG SHORT @ " + str.tostring(close, format.mintick) + " | Señal " + str.tostring(sigToday) + "/" + str.tostring(maxSignals), alert.freq_once_per_bar)
if useTimeFilter and not inWindow and inWindow[1] and sigToday == 0 and barstate.isrealtime
alert(tag + " | Ventana cerrada SIN señal STRONG -> NO OPERAR HOY", alert.freq_once_per_bar)
//──────────────────────────────────────────────────────────────────────────────
// 7. PANEL DE CONTROL
//──────────────────────────────────────────────────────────────────────────────
dashPosition = panelPos == "Top Right" ? position.top_right : panelPos == "Bottom Right" ? position.bottom_right : panelPos == "Top Left" ? position.top_left : position.bottom_left
var table dash = table.new(dashPosition, 2, 8, bgcolor=color.new(#131722, 10), border_width=1, border_color=color.new(color.gray, 75), frame_color=color.new(color.gray, 50), frame_width=1, force_overlay=true)
if barstate.islast and showPanel
color cTxt = color.new(color.white, 10)
string hdr = "NY OPEN PRO" + (timeframe.in_seconds() > 300 ? " ⚠ usa 1m-5m" : "")
table.cell(dash, 0, 0, hdr, text_color=color.white, text_size=size.small, bgcolor=color.new(#089981, 30))
table.merge_cells(dash, 0, 0, 1, 0)
// Sesión
string sesTxt = not useTimeFilter ? "Filtro OFF" : inWindow ? "ACTIVA · " + str.tostring(minsLeft) + " min" : "Cerrada"
color sesCol = not useTimeFilter ? color.gray : inWindow ? color.lime : color.gray
table.cell(dash, 0, 1, "Ventana NY", text_color=cTxt, text_size=size.small, text_halign=text.align_left)
table.cell(dash, 1, 1, sesTxt, text_color=sesCol, text_size=size.small, text_halign=text.align_left)
// Señales hoy
table.cell(dash, 0, 2, "Señales hoy", text_color=cTxt, text_size=size.small, text_halign=text.align_left)
table.cell(dash, 1, 2, str.tostring(sigToday) + " / " + str.tostring(maxSignals), text_color=limitOK ? color.white : color.orange, text_size=size.small, text_halign=text.align_left)
// Tendencia
table.cell(dash, 0, 3, "Tendencia EMAs", text_color=cTxt, text_size=size.small, text_halign=text.align_left)
table.cell(dash, 1, 3, stackBull ? "ALCISTA" : stackBear ? "BAJISTA" : "MIXTA", text_color=stackBull ? color.lime : stackBear ? color.red : color.gray, text_size=size.small, text_halign=text.align_left)
// ADX
table.cell(dash, 0, 4, "ADX", text_color=cTxt, text_size=size.small, text_halign=text.align_left)
table.cell(dash, 1, 4, str.tostring(adxV, "0.0") + (adxV >= adxMin ? " ✓" : " ✗"), text_color=adxV >= adxMin ? color.lime : color.orange, text_size=size.small, text_halign=text.align_left)
// Filtros
table.cell(dash, 0, 5, "Vol / ATR", text_color=cTxt, text_size=size.small, text_halign=text.align_left)
table.cell(dash, 1, 5, (volOK ? "Vol ✓" : "Vol ✗") + " " + (atrOK ? "ATR ✓" : "ATR ✗"), text_color=(volOK and atrOK) ? color.lime : color.orange, text_size=size.small, text_halign=text.align_left)
// Noticias
table.cell(dash, 0, 6, "Noticias", text_color=cTxt, text_size=size.small, text_halign=text.align_left)
table.cell(dash, 1, 6, newsBlock ? "BLOQUEADO" : "OK", text_color=newsBlock ? color.red : color.lime, text_size=size.small, text_halign=text.align_left)
// Estado general
string stTxt = "Esperando STRONG"
color stCol = color.gray
if newsBlock
stTxt := "⛔ NOTICIA · NO OPERAR"
stCol := color.red
else if useTimeFilter and not inWindow
if sigToday == 0 and windowClosedToday
stTxt := "⛔ SIN SEÑAL · NO OPERAR HOY"
stCol := color.red
else if sigToday > 0
stTxt := "Sesión finalizada"
stCol := color.gray
else
stTxt := "Fuera de horario"
stCol := color.gray
else if not limitOK
stTxt := "Límite diario alcanzado"
stCol := color.orange
else if previewStrongLong
stTxt := "⚠ PREPARAR COMPRA"
stCol := color.lime
else if previewStrongShort
stTxt := "⚠ PREPARAR VENTA"
stCol := color.red
table.cell(dash, 0, 7, stTxt, text_color=color.white, text_size=size.small, bgcolor=color.new(stCol, 55))
table.merge_cells(dash, 0, 7, 1, 7)
//──────────────────────────────────────────────────────────────────────────────
// 8. BRANDING
//──────────────────────────────────────────────────────────────────────────────
color BRAND_GOLD = #089981
color BRAND_DEEP = color.new(#131722, 10)
var table brandTag = table.new(brandPos == "Top Center" ? position.top_center : position.bottom_center, 1, 1, bgcolor=BRAND_DEEP, border_width=1, frame_color=color.new(BRAND_GOLD, 50), frame_width=1, force_overlay=true)
if barstate.islast and showBrand
brandTag.cell(0, 0, " ⚡ JLAPRO · TREND REVERSAL PRO ⚡ ", text_color=BRAND_GOLD, text_size=size.normal, text_halign=text.align_center)
var table tbl_watermark = table.new(position.middle_center, 1, 1, border_width=0)
if barstate.islast and showBigWm
table.cell(tbl_watermark, 0, 0, "www.jlapro.com\n___", text_color=color.rgb(107, 107, 107, 75), text_size=size.huge)