IQ_WIKI_SCRIP_V1.0.1.lua 9 KB · Gratis, lisensi MIT
Untuk IQ Option Ruang perdagangan web. Quadcode tidak menampilkan penanda LEBIH TINGGI dan LEBIH RENDAH di perangkat seluler.
Tambahkan ke IQ Option dalam langkah 3
- Ambil file tersebut. Tekan Dapatkan skrip. Browser Anda akan menyimpan file .lua.
- Impor itu ke dalam IQ Option. Buka ruang perdagangan web pada saldo Latihan. Klik ikon gelombang di bagian kiri bawah grafik, buka tab Skrip, tekan Impor skrip, dan pilih file.
- Tambahkan ke dalam bagan. Kode akan terbuka di editor. Klik tombol plus di bawahnya (Tambahkan ke grafik). Simpan hanya diperlukan setelah Anda mengedit kode.
Panduan bergambar lengkap, dengan tangkapan layar →
Risiko. Trading dapat menyebabkan kerugian. Sebuah penanda adalah pengamatan grafik, bukan prediksi, dan skrip ini diperiksa pada data uji, bukan dibuktikan dalam trading sebenarnya. Cobalah terlebih dahulu pada saldo Latihan.
- kecenderungan
- Mesin sinyal
- Pada harga
- Menengah
Lapisan konfluensi selektif dengan lima filter yang mudah dibaca: keselarasan tren dan kemiringan EMA, momentum RSI tanpa mengejar titik ekstrem, kekuatan ADX/DMI, aktivitas ATR, dan indikator kualitas candlestick.
Aturan
penanda LEBIH TINGGI
EMA 9, 21, dan 50 tersusun ke atas dengan garis lambat yang meningkat, RSI berada di antara 52 dan 68, ADX setidaknya 20 dengan +DI sebagai indikator utama, ATR setidaknya 85% dari garis dasarnya, dan penutupan bullish tetap berada dalam jarak 1.25 ATR dari EMA cepat.
penanda BAWAH
Gambaran cerminnya: EMA bertumpuk ke bawah, RSI antara 32 dan 48, ADX setidaknya 20 dengan -DI sebagai indikator utama, ATR aktif, dan penutupan bearish dalam jarak 1.25 ATR dari EMA cepat.
Sebuah penanda muncul setelah candle berikutnya dibuka dan digambar pada candle yang menyelesaikan setup. Ini adalah pengamatan grafik, bukan instruksi untuk melakukan trading.
Cara membacanya
Tiga moving average dan pita berkode warna menunjukkan arah tren. Penanda LONG dan SHORT muncul pada candlestick di mana kelima filter pertama kali sepakat.
Indikator yang digunakan
- EMA 21/9/50
- RSI (14)
- ADX/DMI (14)
- ATR (14)
Tampilan yang sama dengan indikator bawaan: EMA 9, 21 dan 50, RSI (14), ADX (14) dan ATR (14) dengan IQ Optionindikator bawaan.
Pengaturan default
| EMA | 9 / 21 / 50 |
|---|---|
| RSI | 14 (52 / 68) |
| ADX/DMI | 14, ambang batas 20 |
| Aktivitas ATR | 85% dari nilai dasar 20-EMA |
| Ekstensi maksimum | 1.25 ATR |
Setiap nilai merupakan input dalam pengaturan skrip. Saran platform dinonaktifkan secara default.
Poin kunci
- Versi 1.0.1 memeriksa lima hal sekaligus: tren, momentum, kekuatan, aktivitas, dan kualitas candlestick.
- Pita EMA berubah warna menjadi hijau atau merah sehingga Anda dapat melihat trennya sekilas.
- RSI harus mengkonfirmasi arah tanpa dipaksakan secara ekstrem.
- Garis ADX dan DMI memastikan langkah ini memiliki kekuatan yang memadai.
- Penanda hanya muncul ketika kelima filter sepakat bahwa sebuah candlestick telah selesai terbentuk.
Keterbatasan. Filter yang lebih banyak dapat menghilangkan kondisi yang terlihat lemah tetapi juga menciptakan penanda terlambat dan melewatkan pergerakan; semua filter dapat sepakat tepat sebelum hasil yang merugikan. Uji coba pada saldo Latihan sebelum mempertaruhkan dana sungguhan.
Kode sumber lengkap
Unduhan dan pratinjau ini mengarah ke file yang ditinjau yang sama. 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
Lebih banyak skrip tren
- kecenderungan
- Pada harga
- Menengah
Supertrend EMA 200
Arah Supertrend Marks hanya berbalik ketika candle ditutup di sisi yang sama dengan EMA 200 periode. EMA bertindak sebagai filter bias jangka panjang sederhana untuk pembalikan Supertrend.
Indikator: Tren Super (10, 3) · EMA (200)
- kecenderungan
- Panel sendiri
- Menengah
Indeks Intensitas Tren
Menandai momen ketika Indeks Intensitas Tren memasuki zona kuatnya: di atas 80 untuk tekanan naik atau di bawah 20 untuk tekanan turun, dengan penutupan di sisi yang sesuai dari SMA 60 periode. Ini adalah penanda masuk berdasarkan kekuatan tren, bukan penanda pembalikan.
Indikator: Indeks Intensitas Tren (30, SMA 60)
- kecenderungan
- Pada harga
- Menengah
VHF EMA Cross
Filter ini hanya menandai persilangan EMA 9 dan EMA 21, sementara Filter Vertikal Horizontal melaporkan pasar yang sedang tren. Filter ini menghapus persilangan yang terjadi selama pergerakan harga mendatar, di mana persilangan rata-rata pergerakan cenderung tidak dapat diandalkan.
Indikator: Filter Vertikal Horizontal (28, 0.35) · EMA (9) · EMA (21)
Unduh semua 74 skrip sebagai satu file ZIP. · Lisensi MIT, disediakan "sebagaimana adanya", tanpa jaminan. IQOptionWiki independen dari IQ Option operator platform. Tidak ada di sini yang merupakan saran investasi atau jaminan hasil.