iqow-r3-mtf-ema50-kc-shock.lua 4 KB · Free, MIT license
For the IQ Option web traderoom. Quadcode does not draw HIGHER and LOWER markers on mobile.
Add it to IQ Option in 3 steps
- Get the file. Press Get the script. Your browser saves a .lua file.
- Import it in IQ Option. Open the web traderoom on the Practice balance. Click the wave icon at the bottom left of the chart, open the Scripts tab, press Import script and pick the file.
- Add it to the chart. The code opens in an editor. Click the plus button under it (Add to chart). Save is only needed after you edit the code.
Full illustrated guide, with screenshots →
Risk. Trading can lose money. A marker is a chart observation, not a prediction, and this script is checked on test data, not proven in live trading. Try it on the Practice balance first.
- Reversal
- On price
- Intermediate
Combines medium-horizon EMA(50) displacement with Keltner(20) outer band break, ATR(5)/ATR(50) shock, and RSI(2). Designed for closed-candle chart observation.
The rules
HIGHER marker
Close <= Keltner(3.0) lower, (close-EMA50)/ATR20 <= -2.5, ATR(5)/ATR(50) >= 1.8, RSI(2) <= 8.0.
LOWER marker
Close >= Keltner(3.0) upper, (close-EMA50)/ATR20 >= +2.5, ATR(5)/ATR(50) >= 1.8, RSI(2) >= 92.0.
A marker appears after the next candle opens and is drawn on the candle that completed the setup. It is a chart observation, not an instruction to trade.
How to read it
Guide lines plot the volatility reference channel. A green HIGHER triangle under a candle confirms a bullish setup; a red LOWER triangle above confirms a bearish setup.
Indicators used
- Keltner Channel (20)
- EMA (50)
- ATR (5, 50) Shock
- RSI (2)
Same view with built-in indicators: Add Keltner Channel (20), EMA (50), ATR (5, 50) Shock, RSI (2) to a 5-minute chart and watch for closed-bar confirmation.
Default settings
| kc_m | 3 |
|---|---|
| ema50_atr | 2.5 |
| shock_th | 1.8 |
| rsi_th | 8 |
Every value is an input in the script settings. Platform advice is off by default.
Key points
- IQOW R3 MTF EMA50 Shock Fade pairs strict completed-candle price structure with extreme exhaustion filters so markers do not repaint.
- Across 26 unseen Binance 5m IQOW10 windows (2020-2026) at 10m expiry, it logged 58.07% (n=19,755, low95 57.38%, 22/26 windows above 54.05%).
- Bonferroni-audited across M_raw=844 raw Round-3 trials (11.32 sigma, p_bonf=4.6e-27) with ~0.83 signals/day/coin.
- Separate from the 1m/2m IQOW Ten leaderboard; evaluated on Binance spot prices, not live IQ Option quotes. Test on Practice first.
What the research found
The evidence behind this script
Round-3 Tier-A promote. Tested on Binance 5m IQOW10 crypto spot data (26 unseen windows, 2020-01-13 to 2026-08-01, plus 2019-2026 holdout) at a 10-minute expiry, audited across M_raw=844 raw trials. Break-even at 85% payout is 54.05%.
- 5m/10m · 26 windows
- 58.07%
- Late-half unseen
- 58.73%
- Walk-forward 26W
- 58.27%
- Sides & frequency
- 60.8% / 55.4%
Fixed params across 26 unseen windows (2020-2026): n=19,755 trades, Wilson low95 57.38%, 22 of 26 windows above 54.05%, cooldown 58.07%, EV@80% +0.0446 / EV@85% +0.0733.
Second half of 26 unseen windows (n=10,221, low95 57.77%). Unseen 2019-2026 all: 58.26% (n=22,355); 2024 60.53%, 2025 56.26%, 2026 pre-Aug 56.98%, Aug-Oct 2026 55.72%.
Rolling out-of-sample selection: n=13,389 trades (low95 57.43%), 22 of 26 windows above 54.05%. Bonferroni audit (M_raw=844): 11.32 sigma, p_bonf=4.6e-27.
HIGHER 60.75% (n=12,047) vs LOWER 55.36% (n=10,308); ~0.83 signals/day/coin, max Jaccard vs prior fades 0.137. 9/10 IQOW10 coins above 54.05%.
Evaluated on Binance 5m crypto spot candles (10m expiry), distinct from the 1m/2m IQOW Ten leaderboard (#1 Big Body Fade, #2 Z-Score Fade). Low-frequency shock rules require patience (~0.83 signals/day/coin) and do not guarantee outcomes; test on a Practice balance and verify live payouts before trading.
Limitations. Evaluated on Binance 5m spot crypto data (IQOW10, 10m expiry), not IQ Option's live quote feed, separate from the 1m/2m IQOW Ten leaderboard (#1 Big Body Fade, #2 Z-Score Fade). 9/10 IQOW10 coins cleared 54.05% (TRXUSDT 53.60%). LOWER EV is -0.0036 at 80% (+0.0238 at 85%). Combined EV +0.0446 at 80% (+0.0733 at 85%). Does not guarantee outcomes. Test on the Practice balance before risking real funds.
Complete source code
The download and this preview resolve to the same reviewed file. SHA-256: 85171c35a2962a3b57de870e0b1e9d5bc458ca4b800e761687087cb8e28d4ea3
-- SPDX-License-Identifier: MIT
-- IQOptionWiki QCS Library
-- IQOW R3 MTF EMA50 Shock Fade v1.0.0
--
-- Combines medium-horizon EMA(50) overextension with Keltner(20) outer
-- breakout, ATR(5)/ATR(50) shock expansion, and closed-bar RSI(2).
--
-- HIGHER: Close <= Keltner(3.0) lower, (close-EMA50)/ATR20 <= -2.5, ATR(5)/ATR(50) >= 1.8, RSI(2) <= 8.0.
-- LOWER: Close >= Keltner(3.0) upper, (close-EMA50)/ATR20 >= +2.5, ATR(5)/ATR(50) >= 1.8, RSI(2) >= 92.0.
--
-- Markers use the previous completed candle: they appear after the next candle
-- opens and are shifted back one bar onto the candle that qualified.
-- Educational chart tool only. It does not place trades, choose an expiry,
-- predict outcomes, or guarantee results. Test on a Practice balance first.
instrument {
name = "IQOW R3 MTF EMA50 Shock Fade",
short_name = "IQOW R3 MTFKC",
overlay = true
}
input_group {
"1. MTF shock settings",
kc_mult = input (3.0, "Keltner(20) ATR multiplier", input.double, 0.5, 5.0, 0.1, false),
ema50_atr = input (2.5, "Min EMA(50) stretch in ATR(20)", input.double, 0.5, 6.0, 0.1, false),
shock_th = input (1.8, "Min ATR(5)/ATR(50) shock ratio", input.double, 1.0, 4.0, 0.05, false),
rsi_th = input (8.0, "RSI(2) extreme level", input.double, 1.0, 20.0, 0.5, false)
}
input_group {
"Display and advice",
lines_visible = input { default = true, type = input.plot_visibility },
signals_visible = input { default = true, type = input.plot_visibility },
advice_enabled = input { default = false, name = "Enable platform advice", type = input.boolean }
}
input_group {
"Colors",
guide_color = input { default = "#56CEFF", type = input.color },
band_color = input { default = "#9B59B6", type = input.color },
line_width = input { default = 1, type = input.line_width },
higher_color = input { default = "#25E154", type = input.color },
lower_color = input { default = "#FF6C58", type = input.color },
signal_text_color = input { default = "#FFFFFF", type = input.color }
}
atr5 = rma (tr, 5)
atr20 = rma (tr, 20)
atr50 = rma (tr, 50)
mid_guide = ema (hlc3, 20)
upper_guide = mid_guide + kc_mult * atr20
lower_guide = mid_guide - kc_mult * atr20
ema50_s = ema (close, 50)
r2_s = rsi (close, 2)
local c0 = get_value (close, nil)
local a5_v = get_value (atr5, nil)
local a20_v = get_value (atr20, nil)
local a50_v = get_value (atr50, nil)
local ku = get_value (upper_guide, nil)
local kl = get_value (lower_guide, nil)
local e50_v = get_value (ema50_s, nil)
local r2_v = get_value (r2_s, nil)
local ok =
c0 ~= nil and a5_v ~= nil and a20_v ~= nil and a20_v > 0 and
a50_v ~= nil and a50_v > 0 and ku ~= nil and kl ~= nil and e50_v ~= nil and r2_v ~= nil
local sh = ok and (a5_v / a50_v) or 0
local dev50 = ok and ((c0 - e50_v) / a20_v) or 0
local raw_higher = ok and c0 <= kl and dev50 <= -ema50_atr and sh >= shock_th and r2_v <= rsi_th
local raw_lower = ok and c0 >= ku and dev50 >= ema50_atr and sh >= shock_th and r2_v >= (100.0 - rsi_th)
higher_setup = conditional (raw_higher and not raw_lower)
lower_setup = conditional (raw_lower and not raw_higher)
-- Confirm only a new setup on the previous completed candle.
confirmed_higher = conditional (
get_value (higher_setup [1], false) and
not get_value (higher_setup [2], false)
)
confirmed_lower = conditional (
get_value (lower_setup [1], false) and
not get_value (lower_setup [2], false)
)
if lines_visible then
plot (upper_guide, "Upper guide", band_color, line_width)
plot (lower_guide, "Lower guide", band_color, line_width)
plot (mid_guide, "Baseline", guide_color, line_width)
end
if signals_visible then
plot_shape (
confirmed_higher,
"R3 MTFKC HIGHER",
shape_style.triangleup,
shape_size.small,
higher_color,
shape_location.belowbar,
-1,
"HIGHER",
signal_text_color
)
plot_shape (
confirmed_lower,
"R3 MTFKC LOWER",
shape_style.triangledown,
shape_size.small,
lower_color,
shape_location.abovebar,
-1,
"LOWER",
signal_text_color
)
end
-- QCS advice is a platform notification state only; it does not place trades.
if advice_enabled and
get_value (confirmed_higher, false) and
not get_value (confirmed_lower, false) then
advise (advice.buy)
elseif advice_enabled and
get_value (confirmed_lower, false) and
not get_value (confirmed_higher, false) then
advise (advice.sell)
else
advise (advice.neutral)
end
More reversal scripts
- Reversal
- On price
- Intermediate
Keltner Extreme Close Fade
Fades extreme 5-minute candle closes that pierce both a Keltner Channel(20, 2.0) and the prior 20-bar Donchian high or low while stretched at least 1.5 ATR(14) away from SMA(20).
Indicators: Keltner Channel (EMA of HLC3, RMA/ATR 20, mult 2.0) · Donchian Channel (20-bar lookback) · SMA (20) and ATR (14) stretch filter
- Reversal
- On price
- Beginner
Keltner Re-entry
Marks the candle that closes back inside the Keltner Channel after the previous candle closed outside it. The channel width follows volatility, so a close outside it shows an unusually stretched move.
Indicators: Keltner Channel (EMA 20, 2 x ATR)
- Reversal
- On price
- Intermediate
Morning Evening Star RSI
Marks morning star and evening star candle patterns when RSI on the middle candle was at a low or high zone. RSI helps check that the pattern follows a push in the opposite direction.
Indicators: Morning and evening star candles · RSI (14, 40/60)
Download all 84 scripts as one ZIP · MIT License, provided “as is”, without warranty. IQOptionWiki is independent of the IQ Option platform operator. Nothing here is investment advice or a guarantee of results.