IQ_WIKI_SCRIP_V1.0.1.lua 9 КБ · Бесплатно, лицензия MIT
Для того, чтобы получить IQ Option Веб-торговая площадка. Quadcode не отображает маркеры ВЫШЕ и НИЖЕ на мобильных устройствах.
Добавить это в IQ Option с шагом 3
- Получите файл. Нажмите «Получить скрипт». Ваш браузер сохранит файл с расширением .lua.
- Импортируйте его в IQ Option. Откройте веб-торговую комнату на тренировочном балансе. Щелкните значок волны в левом нижнем углу графика, откройте вкладку «Скрипты», нажмите «Импорт скрипта» и выберите файл.
- Добавьте это в диаграмму. Код откроется в редакторе. Нажмите кнопку «плюс» под ним (Добавить на диаграмму). Сохранение необходимо выполнить только после редактирования кода.
Полное иллюстрированное руководство со скриншотами →
Риск. Торговля может приносить убытки. Маркер — это наблюдение за графиком, а не прогноз, и этот скрипт проверен на тестовых данных, а не доказан в реальных условиях торговли. Попробуйте сначала на тренировочном балансе.
- тенденция
- Сигнальный двигатель
- По цене
- Intermediate
Выборочное наложение сигналов с пятью легко читаемыми фильтрами: выравнивание тренда и наклон EMA, импульс RSI без погони за экстремумами, сила ADX/DMI, активность ATR и защита качества свечей.
Правила
ВЫСОКИЙ маркер
Скользящие средние EMA 9, 21 и 50 расположены вертикально, медленные линии также растут, RSI находится в диапазоне от 52 до 68, ADX не ниже 20, при этом лидирует +DI, ATR составляет не менее 85% от базовой линии, а бычье закрытие находится в пределах 1.25 ATR от быстрой EMA.
НИЖНИЙ маркер
Зеркальное отражение: EMA расположены вниз, RSI между 32 и 48, ADX не менее 20 с опережающим -DI, активный ATR и медвежье закрытие в пределах 1.25 ATR от быстрой EMA.
Маркер появляется после открытия следующей свечи и рисуется на свече, завершившей формирование конфигурации. Это наблюдение за графиком, а не указание на совершение сделки.
Как это читать
Три скользящие средние и цветовая шкала показывают направление тренда. Маркеры LONG и SHORT отображаются на свече в точке, где впервые совпадают значения всех пяти фильтров.
Используемые индикаторы
- EMA 21.09.50
- Индекс относительной силы (14)
- ADX/DMI (14)
- АТР (14)
Тот же вид со встроенными индикаторами: EMA 9, 21 и 50, RSI (14), ADX (14) и ATR (14) с IQ OptionВстроенные индикаторы.
Настройки по умолчанию
| ЕМА | 9 / 21 / 50 |
|---|---|
| RSI | 14 (52 / 68) |
| ADX/DMI | 14, порог 20 |
| активность ATR | 85% от исходного уровня 20-ЭМА |
| Максимальное расширение | 1.25 АТР |
Каждое значение является входным параметром в настройках скрипта. Рекомендации по платформе по умолчанию отключены.
Ключевые моменты
- В версии 1.0.1 одновременно проверяются пять параметров: тренд, импульс, сила, активность и качество свечей.
- Лента EMA меняет цвет на зеленый или красный, позволяя с первого взгляда отследить тенденцию.
- Индекс RSI должен подтверждать направление, не доводя его до крайности.
- Линии ADX и DMI гарантируют, что этот шаг будет подкреплен надежной поддержкой.
- Маркер появляется только тогда, когда все пять фильтров сходятся во мнении о завершении формирования свечи.
Ограничения. Дополнительные фильтры устраняют неблагоприятные условия, но также создают поздние маркеры и пропускают ходы; все фильтры могут совпадать непосредственно перед убыточным исходом. Протестируйте на тренировочном балансе, прежде чем рисковать реальными средствами.
Полный исходный код
Загрузка и этот предварительный просмотр ведут к одному и тому же проверенному файлу. 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
Больше сценариев трендов
- тенденция
- По цене
- Intermediate
Супертренд EMA 200
Изменение направления супертренда происходит только тогда, когда свеча закрывается на той же стороне 200-периодной экспоненциальной скользящей средней (EMA). EMA выступает в качестве простого фильтра долгосрочного смещения для изменения направления супертренда.
Показатели: Супертренд (10, 3) · EMA (200)
- тенденция
- Собственная панель
- Intermediate
Индекс интенсивности тренда
Отмечает момент, когда индекс интенсивности тренда входит в зону сильного тренда: выше 80 — для восходящего давления, ниже 20 — для нисходящего давления, при этом цена закрытия находится на соответствующей стороне 60-периодной скользящей средней. Это маркер входа в зону сильного тренда, а не маркер разворота.
Показатели: Индекс интенсивности тренда (30, SMA 60)
- тенденция
- По цене
- Intermediate
VHF EMA Cross
Фильтр «Вертикально-горизонтальный фильтр» отмечает только пересечения EMA 9 и EMA 21, в то время как фильтр «Вертикально-горизонтальный фильтр» указывает на трендовый рынок. Фильтр удаляет пересечения, происходящие во время бокового движения цены, где пересечения скользящих средних, как правило, ненадежны.
Показатели: Вертикальный Горизонтальный Фильтр (28, 0.35) · EMA (9) · EMA (21)
Скачайте все 74 скриптов в одном ZIP-архиве. • Лицензия MIT, предоставляется «как есть», без гарантий. IQOptionWiki независим от... IQ Option Оператор платформы. Ничто из изложенного здесь не является инвестиционным советом или гарантией результатов.