IQ_WIKI_SCRIP_V1.0.1.lua 9 KB · Gratuito, licencia MIT
Para el IQ Option Sala de operaciones web. Quadcode no muestra los marcadores de MAYOR y MENOR en dispositivos móviles.
Añadelo a IQ Option en pasos 3
- Obtén el archivo. Pulsa Obtener el script. Tu navegador guardará un archivo .lua.
- Importarlo en IQ Option. Abra la sala de operaciones web en el saldo de práctica. Haga clic en el icono de onda en la parte inferior izquierda del gráfico, abra la pestaña Scripts, pulse Importar script y seleccione el archivo.
- Añádelo a la tabla. El código se abre en un editor. Haz clic en el botón de signo más que aparece debajo (Añadir al gráfico). Solo es necesario guardar después de editar el código.
Guía completa ilustrada, con capturas de pantalla →
Riesgo. Operar en los mercados financieros puede generar pérdidas. Un marcador es una observación del gráfico, no una predicción, y este script se ha probado con datos de prueba, no en operaciones reales. Pruébelo primero con el saldo de práctica.
- Tendencia
- Motor de señales
- Sobre el precio
- Intermedio
Una superposición de confluencia selectiva con cinco filtros legibles: alineación de la tendencia y pendiente de la EMA, impulso del RSI sin perseguir los extremos, fuerza del ADX/DMI, actividad del ATR y un filtro de calidad de las velas.
Las normas
Marcador SUPERIOR
Las EMA 9, 21 y 50 están apiladas hacia arriba con líneas lentas ascendentes, el RSI está entre 52 y 68, el ADX es al menos 20 con +DI a la cabeza, el ATR es al menos el 85% de su línea base y un cierre alcista se mantiene dentro de 1.25 ATR de la EMA rápida.
Marcador INFERIOR
La imagen especular: EMAs apiladas hacia abajo, RSI entre 32 y 48, ADX de al menos 20 con -DI a la cabeza, ATR activo y un cierre bajista dentro de 1.25 ATR de la EMA rápida.
Tras la apertura de la siguiente vela, aparece un marcador que se dibuja sobre la vela que completó la configuración. Se trata de una observación del gráfico, no de una instrucción para operar.
Cómo leerlo
Tres medias móviles y una cinta codificada por colores muestran la dirección de la tendencia. Los marcadores LONG y SHORT aparecen en la vela donde los cinco filtros coinciden por primera vez.
Indicadores utilizados
- EMA 21/9/50
- RSI (14)
- ADX/DMI (14)
- ATR (14)
Misma vista con indicadores integrados: EMA 9, 21 y 50, RSI (14), ADX (14) y ATR (14) con IQ Optionindicadores incorporados.
Ajustes por defecto
| EMA | 9 / 21 / 50 |
|---|---|
| RSI | 14 (52 / 68) |
| ADX/DMI | 14, umbral 20 |
| Actividad ATR | 85% de la línea base de 20-EMA |
| Extensión máxima | 1.25 RTA |
Cada valor es una entrada en la configuración del script. La función de sugerencias de la plataforma está desactivada por defecto.
Puntos clave
- La versión 1.0.1 comprueba cinco cosas a la vez: tendencia, impulso, fuerza, actividad y calidad de la vela.
- La cinta de la EMA cambia a verde o rojo para que puedas ver la tendencia de un vistazo.
- El RSI debe confirmar la dirección sin exagerar.
- Las líneas ADX y DMI garantizan que el movimiento tenga suficiente respaldo.
- Un marcador aparece solo cuando los cinco filtros coinciden en que la vela ha finalizado.
Limitaciones. Más filtros eliminan condiciones aparentemente débiles, pero también crean marcadores tardíos y omiten movimientos; todos los filtros pueden coincidir justo antes de un resultado perdedor. Prueba en el saldo de práctica antes de arriesgar fondos reales.
Código fuente completo
La descarga y esta vista previa corresponden al mismo archivo revisado. SHA-256: e2bdb8391ebe6ab801e38f04d5129209e3586d5a4aa70d73ecbcfbb6c66011ce
-- SPDX-License-Identifier: MIT
-- IQOptionWiki QCS Library
-- IQ_WIKI_SCRIP_V1.0.1
--
-- A chart-timeframe confluence indicator built from five readable filters:
-- 1. EMA trend alignment and slope
-- 2. RSI momentum confirmation without chasing extremes
-- 3. ADX/DMI directional strength
-- 4. ATR activity compared with its recent baseline
-- 5. Candle direction plus an ATR extension guard
--
-- LONG and SHORT markers use the previous completed candle. They appear after
-- the next candle begins and are shifted back one bar onto the candle that
-- qualified. This avoids making a marker depend on an unfinished candle.
--
-- This indicator does not place trades, choose an expiry, predict outcomes, or
-- guarantee results. Review the settings and test on a Practice balance first.
instrument {
name = "IQ_WIKI_SCRIP_V1.0.1",
short_name = "IQ WIKI PRO",
icon = "indicators:ADX",
overlay = true
}
input_group {
"1. Trend engine",
fast_period = input (9, "Fast EMA period", input.integer, 2, 100),
slow_period = input (21, "Slow EMA period", input.integer, 3, 250),
anchor_period = input (50, "Trend anchor EMA period", input.integer, 5, 500)
}
input_group {
"2. Momentum filter",
rsi_period = input (14, "RSI period", input.integer, 2, 100),
momentum_level = input (52, "RSI confirmation level", input.double, 51, 64, 1, false),
momentum_cap = input (68, "RSI extreme guard", input.double, 65, 85, 1, false)
}
input_group {
"3. Strength filter",
strength_period = input (14, "ADX and DMI period", input.integer, 2, 100),
strength_threshold = input (20, "Minimum ADX strength", input.double, 1, 60, 1, false)
}
input_group {
"4. Volatility filter",
atr_period = input (14, "ATR period", input.integer, 2, 100),
volatility_baseline_period = input (20, "ATR baseline EMA period", input.integer, 2, 200),
minimum_volatility_percent = input (85, "Minimum volatility vs baseline (%)", input.double, 10, 300, 5, false)
}
input_group {
"5. Price quality filter",
maximum_extension_atr = input (1.25, "Maximum close-to-fast-EMA distance (ATR)", input.double, 0.10, 5.00, 0.05, false)
}
input_group {
"Display",
trend_lines_visible = input { default = true, type = input.plot_visibility },
anchor_visible = input { default = true, type = input.plot_visibility },
ribbon_visible = input { default = true, type = input.plot_visibility },
volatility_guide_visible = input { default = false, type = input.plot_visibility },
signals_visible = input { default = true, type = input.plot_visibility }
}
input_group {
"Trend colors",
fast_color = input { default = "#56CEFF", type = input.color },
slow_color = input { default = "#FFB15A", type = input.color },
anchor_color = input { default = rgba(255, 255, 255, 0.48), type = input.color },
trend_line_width = input { default = 2, type = input.line_width },
anchor_line_width = input { default = 1, type = input.line_width }
}
input_group {
"Ribbon colors",
bullish_ribbon_color = input { default = rgba(37, 225, 84, 0.14), type = input.color },
bearish_ribbon_color = input { default = rgba(255, 108, 88, 0.14), type = input.color },
neutral_ribbon_color = input { default = rgba(255, 255, 255, 0.05), type = input.color }
}
input_group {
"Signal colors",
long_signal_color = input { default = "#25E154", type = input.color },
short_signal_color = input { default = "#FF6C58", type = input.color },
signal_text_color = input { default = "#FFFFFF", type = input.color }
}
input_group {
"Optional volatility guide",
volatility_guide_atr = input (1.50, "Guide distance (ATR)", input.double, 0.10, 10.00, 0.10, false),
volatility_guide_color = input { default = rgba(181, 140, 255, 0.28), type = input.color },
volatility_guide_width = input { default = 1, type = input.line_width }
}
-- Trend engine
fast_ema = ema (close, fast_period)
slow_ema = ema (close, slow_period)
anchor_ema = ema (close, anchor_period)
-- RSI momentum filter using the documented built-in.
rsi_value = rsi (close, rsi_period)
-- ADX/DMI strength filter.
up_move = change (high)
down_move = -change (low)
positive_dm = iff (up_move > down_move and nz (up_move) > 0, up_move, 0)
negative_dm = iff (down_move > up_move and nz (down_move) > 0, down_move, 0)
directional_atr = rma (tr, strength_period)
directional_atr_safe = max (directional_atr, 0.0000000001)
positive_di = 100 * rma (positive_dm / directional_atr_safe, strength_period)
negative_di = 100 * rma (negative_dm / directional_atr_safe, strength_period)
dmi_sum_safe = max (positive_di + negative_di, 0.0000000001)
adx_value = 100 * rma (abs (positive_di - negative_di) / dmi_sum_safe, strength_period)
-- ATR activity filter and optional visual guide.
atr_value = rma (tr, atr_period)
atr_baseline = ema (atr_value, volatility_baseline_period)
volatility_guide_upper = slow_ema + atr_value * volatility_guide_atr
volatility_guide_lower = slow_ema - atr_value * volatility_guide_atr
-- Read current scalar values explicitly before using them in Lua conditions.
local close_now = get_value (close, 0)
local open_now = get_value (open, 0)
local fast_now = get_value (fast_ema, 0)
local slow_now = get_value (slow_ema, 0)
local slow_previous = get_value (slow_ema [1], 0)
local anchor_now = get_value (anchor_ema, 0)
local anchor_previous = get_value (anchor_ema [1], 0)
local rsi_now = get_value (rsi_value, 50)
local positive_di_now = get_value (positive_di, 0)
local negative_di_now = get_value (negative_di, 0)
local adx_now = get_value (adx_value, 0)
local atr_now = get_value (atr_value, 0)
local atr_baseline_now = get_value (atr_baseline, 0)
local warmup_anchor = get_value (anchor_ema [anchor_period], 0)
local warmup_strength = get_value (adx_value [strength_period], -1)
local warmup_volatility = get_value (atr_baseline [volatility_baseline_period], 0)
local periods_are_valid =
fast_period < slow_period and
slow_period < anchor_period and
momentum_level > 50 and
momentum_cap > momentum_level
local data_is_ready =
periods_are_valid and
close_now > 0 and
fast_now > 0 and
slow_now > 0 and
anchor_now > 0 and
atr_now > 0 and
atr_baseline_now > 0 and
warmup_anchor > 0 and
warmup_strength >= 0 and
warmup_volatility > 0
local bullish_trend =
fast_now > slow_now and
slow_now > anchor_now and
slow_now > slow_previous and
anchor_now > anchor_previous
local bearish_trend =
fast_now < slow_now and
slow_now < anchor_now and
slow_now < slow_previous and
anchor_now < anchor_previous
local bullish_momentum =
rsi_now >= momentum_level and
rsi_now <= momentum_cap
local bearish_momentum =
rsi_now <= (100 - momentum_level) and
rsi_now >= (100 - momentum_cap)
local bullish_strength =
adx_now >= strength_threshold and
positive_di_now > negative_di_now
local bearish_strength =
adx_now >= strength_threshold and
negative_di_now > positive_di_now
local volatility_is_active =
atr_now >= atr_baseline_now * minimum_volatility_percent / 100
local bullish_price_quality =
close_now > open_now and
close_now > fast_now and
(close_now - fast_now) <= atr_now * maximum_extension_atr
local bearish_price_quality =
close_now < open_now and
close_now < fast_now and
(fast_now - close_now) <= atr_now * maximum_extension_atr
-- conditional() stores each bar's boolean so completed-bar history is usable.
long_setup = conditional (
data_is_ready and
bullish_trend and
bullish_momentum and
bullish_strength and
volatility_is_active and
bullish_price_quality
)
short_setup = conditional (
data_is_ready and
bearish_trend and
bearish_momentum and
bearish_strength and
volatility_is_active and
bearish_price_quality
)
-- Confirm only a new setup on the previous completed candle. Indexed
-- series[boolean] values are converted to Lua booleans before native and/not.
-- Offset -1 places the marker on that candle after the current candle opens.
confirmed_long_setup = conditional (
get_value (long_setup [1], false) and
not get_value (long_setup [2], false)
)
confirmed_short_setup = conditional (
get_value (short_setup [1], false) and
not get_value (short_setup [2], false)
)
-- Clean trend context.
ribbon_color = iff (
fast_ema > slow_ema,
bullish_ribbon_color,
iff (fast_ema < slow_ema, bearish_ribbon_color, neutral_ribbon_color)
)
if ribbon_visible then
fill (fast_ema, slow_ema, "Trend ribbon", ribbon_color)
end
if trend_lines_visible then
plot (fast_ema, "Fast EMA", fast_color, trend_line_width)
plot (slow_ema, "Slow EMA", slow_color, trend_line_width)
end
if anchor_visible then
plot (anchor_ema, "Trend anchor EMA", anchor_color, anchor_line_width)
end
if volatility_guide_visible then
plot (volatility_guide_upper, "Upper ATR guide", volatility_guide_color, volatility_guide_width)
plot (volatility_guide_lower, "Lower ATR guide", volatility_guide_color, volatility_guide_width)
end
if signals_visible then
plot_shape (
confirmed_long_setup,
"Confirmed LONG setup",
shape_style.triangleup,
shape_size.small,
long_signal_color,
shape_location.belowbar,
-1,
"LONG",
signal_text_color
)
plot_shape (
confirmed_short_setup,
"Confirmed SHORT setup",
shape_style.triangledown,
shape_size.small,
short_signal_color,
shape_location.abovebar,
-1,
"SHORT",
signal_text_color
)
end
Más guiones de tendencia
- Tendencia
- Sobre el precio
- Intermedio
Supertrend EMA 200
La dirección de la Supertendencia cambia solo cuando la vela cierra en el mismo lado de la EMA de 200 períodos. La EMA actúa como un filtro de sesgo a largo plazo simple para el cambio de dirección de la Supertendencia.
indicadores: Supertendencia (10, 3) · EMA (200)
- Tendencia
- Panel propio
- Intermedio
Índice de intensidad de la tendencia
Marca el momento en que el Índice de Intensidad de la Tendencia entra en su zona fuerte: por encima de 80 indica presión alcista o por debajo de 20 presión bajista, con el cierre en el lado correspondiente de la media móvil simple de 60 períodos. Es un indicador de entrada de fuerza de tendencia, no un indicador de reversión.
indicadores: Índice de intensidad de tendencia (30, SMA 60)
- Tendencia
- Sobre el precio
- Intermedio
Cruz EMA VHF
Marca únicamente los cruces de EMA 9 y EMA 21, mientras que el filtro vertical-horizontal informa sobre un mercado con tendencia. El filtro elimina los cruces que se producen durante movimientos laterales del precio, donde los cruces de medias móviles tienden a ser poco fiables.
indicadores: Filtro vertical horizontal (28, 0.35) · EMA (9) · EMA (21)
Descarga los 74 guiones en un solo archivo ZIP. · Licencia MIT, proporcionada “tal cual”, sin garantía. IQOptionWiki es independiente de IQ Option Operador de la plataforma. Nada de lo aquí expuesto constituye asesoramiento de inversión ni garantía de resultados.