iqow-r3-consensus-rsi2-shock.lua 9 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
Requires >=3 core reversal engines plus ATR(5)/ATR(50) shock expansion and an extreme closed-bar RSI(2) climax. Designed for closed-candle chart observation.
The rules
HIGHER marker
Consensus votes >= 3, ATR(5)/ATR(50) >= 1.8, and RSI(2) <= 3.0.
LOWER marker
Consensus votes >= 3, ATR(5)/ATR(50) >= 1.8, and RSI(2) >= 97.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
- 6-Engine Exhaustion Consensus
- ATR (5, 50) Shock
- RSI (2)
Same view with built-in indicators: Add 6-Engine Exhaustion Consensus, ATR (5, 50) Shock, RSI (2) to a 5-minute chart and watch for closed-bar confirmation.
Default settings
| min_votes | 3 |
|---|---|
| shock_th | 1.8 |
| rsi_th | 3 |
Every value is an input in the script settings. Platform advice is off by default.
Key points
- IQOW R3 Consensus RSI2 Shock 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 60.07% (n=6,144, low95 58.84%, 23/26 windows above 54.05%).
- Bonferroni-audited across M_raw=844 raw Round-3 trials (9.47 sigma, p_bonf=1.2e-18) with ~0.26 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
- 60.07%
- Late-half unseen
- 62.63%
- Walk-forward 26W
- 57.59%
- Sides & frequency
- 63.0% / 56.6%
Fixed params across 26 unseen windows (2020-2026): n=6,144 trades, Wilson low95 58.84%, 23 of 26 windows above 54.05%, cooldown 60.07%, EV@80% +0.0804 / EV@85% +0.1101.
Second half of 26 unseen windows (n=3,160, low95 60.93%). Unseen 2019-2026 all: 60.22% (n=7,061); 2024 66.09%, 2025 60.86%, 2026 pre-Aug 57.07%, Aug-Oct 2026 54.31%.
Rolling out-of-sample selection: n=6,388 trades (low95 56.38%), 20 of 26 windows above 54.05%. Bonferroni audit (M_raw=844): 9.47 sigma, p_bonf=1.2e-18.
HIGHER 62.98% (n=4,000) vs LOWER 56.62% (n=3,061); ~0.26 signals/day/coin, max Jaccard vs prior fades 0.106. 10/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.26 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). All 10/10 IQOW10 coins cleared 54.05%. Selective (~0.26 signals/day/coin); EV is +0.0804 at 80% and +0.1101 at 85%. Internal research only; does not guarantee outcomes. Test on Practice first. 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: 91ac4d8eeab290e2b7577aef547fbf0c0a6b57e593ef9304b9ab295bf1fc4835
-- SPDX-License-Identifier: MIT
-- IQOptionWiki QCS Library
-- IQOW R3 Consensus RSI2 Shock v1.0.0
--
-- Requires >=3 orthogonal mean-reversion engines to fire simultaneously
-- during a localized ATR(5)/ATR(50) shock and extreme RSI(2) climax.
--
-- HIGHER: Consensus votes >= 3, ATR(5)/ATR(50) >= 1.8, and RSI(2) <= 3.0.
-- LOWER: Consensus votes >= 3, ATR(5)/ATR(50) >= 1.8, and RSI(2) >= 97.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 Consensus RSI2 Shock",
short_name = "IQOW R3 CRSI2",
overlay = true
}
input_group {
"1. Consensus shock settings",
min_votes = input (3, "Min agreeing sub-engines (1-6)", input.integer, 2, 6),
shock_th = input (1.8, "Min ATR(5)/ATR(50) shock ratio", input.double, 1.0, 4.0, 0.05, false),
rsi_th = input (3.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 }
}
-- Six orthogonal non-repainting exhaustion sub-engines (closed-bar consensus)
atr14 = rma (tr, 14)
atr20 = rma (tr, 20)
atr5 = rma (tr, 5)
atr50 = rma (tr, 50)
sma20 = sma (close, 20)
pop_sd20 = stdev (close, 20) * math.sqrt (19 / 20)
ema20_c = ema (close, 20)
kc20_mid = ema (hlc3, 20)
dc20_u = highest (high, 20) [1]
dc20_l = lowest (low, 20) [1]
-- 1) BigBody + ADX median filter
up_mv = change (high)
dn_mv = -change (low)
p_dm = iff (up_mv > dn_mv and nz (up_mv) > 0, up_mv, 0)
m_dm = iff (dn_mv > up_mv and nz (dn_mv) > 0, dn_mv, 0)
a14_s = max (atr14, 1e-10)
p_di = 100 * rma (p_dm, 14) / a14_s
m_di = 100 * rma (m_dm, 14) / a14_s
dx_s = 100 * abs (p_di - m_di) / max (p_di + m_di, 1e-10)
adx14 = rma (dx_s, 14)
adx_med = percentile_nearest_rank (adx14, 100, 50)
-- 2) Connors fast RSI(2,3)+Run, CLV flow(4), Z-Score(20,3), Band-Decel
r2_s = rsi (close, 2)
r3_s = rsi (close, 3)
dir_bar = iff (close > open, 1, iff (close < open, -1, 0))
conn_comp = 0.5 * (0.5 * (r2_s + r3_s)) + 0.5 * (50 + 12.5 * sum (dir_bar, 4))
rng_s = high - low
clv_s = iff (rng_s > 1e-10, ((close - low) - (high - close)) / max (rng_s, 1e-10), 0)
cum_flow4 = sum (clv_s * rng_s / a14_s, 4)
mid_guide = kc20_mid
upper_guide = mid_guide + 2.0 * atr20
lower_guide = mid_guide - 2.0 * atr20
local o0 = get_value (open, nil)
local c0 = get_value (close, nil)
local c1 = get_value (close [1], nil)
local c2 = get_value (close [2], nil)
local c3 = get_value (close [3], nil)
local a5_v = get_value (atr5, nil)
local a14_v = get_value (atr14, nil)
local a20_v = get_value (atr20, nil)
local a50_v = get_value (atr50, nil)
local sm20_v = get_value (sma20, nil)
local sd20_v = get_value (pop_sd20, nil)
local p_sm20 = get_value (sma20 [1], nil)
local p_sd20 = get_value (pop_sd20 [1], nil)
local e20c_v = get_value (ema20_c, nil)
local kcm_v = get_value (kc20_mid, nil)
local du_v = get_value (dc20_u, nil)
local dl_v = get_value (dc20_l, nil)
local adx_v = get_value (adx14, nil)
local adx_m = get_value (adx_med, nil)
local r2_v = get_value (r2_s, nil)
local cc_v = get_value (conn_comp, nil)
local cf_v = get_value (cum_flow4, nil)
local ready6 =
o0 ~= nil and c0 ~= nil and c1 ~= nil and c2 ~= nil and c3 ~= nil and
a5_v ~= nil and a14_v ~= nil and a14_v > 0 and a20_v ~= nil and a20_v > 0 and
a50_v ~= nil and a50_v > 0 and sm20_v ~= nil and sd20_v ~= nil and sd20_v > 0 and
p_sm20 ~= nil and p_sd20 ~= nil and p_sd20 > 0 and e20c_v ~= nil and kcm_v ~= nil and
du_v ~= nil and dl_v ~= nil and adx_v ~= nil and adx_m ~= nil and
r2_v ~= nil and cc_v ~= nil and cf_v ~= nil
local bb_l = ready6 and adx_v >= adx_m and ((c0 - o0) / a14_v) <= -2.0
local bb_s = ready6 and adx_v >= adx_m and ((c0 - o0) / a14_v) >= 2.0
e1_raw_l = conditional (bb_l and not bb_s)
e1_raw_s = conditional (bb_s and not bb_l)
local zs_l = ready6 and c0 <= (sm20_v - 3.0 * sd20_v) and c1 > (p_sm20 - 3.0 * p_sd20)
local zs_s = ready6 and c0 >= (sm20_v + 3.0 * sd20_v) and c1 < (p_sm20 + 3.0 * p_sd20)
e2_raw_l = conditional (zs_l and not zs_s)
e2_raw_s = conditional (zs_s and not zs_l)
local st20 = ready6 and ((c0 - sm20_v) / a14_v) or 0
local kc_l = ready6 and c0 <= (kcm_v - 2.0 * a20_v) and c0 < dl_v and st20 <= -1.5
local kc_s = ready6 and c0 >= (kcm_v + 2.0 * a20_v) and c0 > du_v and st20 >= 1.5
e3_raw_l = conditional (kc_l and not kc_s)
e3_raw_s = conditional (kc_s and not kc_l)
local co_l = ready6 and cc_v <= 15.0 and (e20c_v - c0) >= 1.5 * a14_v
local co_s = ready6 and cc_v >= 85.0 and (c0 - e20c_v) >= 1.5 * a14_v
e4_raw_l = conditional (co_l and not co_s)
e4_raw_s = conditional (co_s and not co_l)
local bd_l = ready6 and (c2 - c3) < 0 and (c1 - c2) < 0 and (c0 - c1) < 0 and (c2 - c3) < (c1 - c2) and (c1 - c2) < (c0 - c1) and c0 <= (sm20_v - 1.8 * sd20_v)
local bd_s = ready6 and (c2 - c3) > 0 and (c1 - c2) > 0 and (c0 - c1) > 0 and (c2 - c3) > (c1 - c2) and (c1 - c2) > (c0 - c1) and c0 >= (sm20_v + 1.8 * sd20_v)
e5_raw_l = conditional (bd_l and not bd_s)
e5_raw_s = conditional (bd_s and not bd_l)
local cl_l = ready6 and cf_v <= -2.2 and ((c0 - e20c_v) / a14_v) <= -1.2
local cl_s = ready6 and cf_v >= 2.2 and ((c0 - e20c_v) / a14_v) >= 1.2
e6_raw_l = conditional (cl_l and not cl_s)
e6_raw_s = conditional (cl_s and not cl_l)
local votes_l =
(get_value (e1_raw_l, false) and not get_value (e1_raw_l [1], false) and 1 or 0) +
(get_value (e2_raw_l, false) and not get_value (e2_raw_l [1], false) and 1 or 0) +
(get_value (e3_raw_l, false) and not get_value (e3_raw_l [1], false) and 1 or 0) +
(get_value (e4_raw_l, false) and not get_value (e4_raw_l [1], false) and 1 or 0) +
(get_value (e5_raw_l, false) and not get_value (e5_raw_l [1], false) and 1 or 0) +
(get_value (e6_raw_l, false) and not get_value (e6_raw_l [1], false) and 1 or 0)
local votes_s =
(get_value (e1_raw_s, false) and not get_value (e1_raw_s [1], false) and 1 or 0) +
(get_value (e2_raw_s, false) and not get_value (e2_raw_s [1], false) and 1 or 0) +
(get_value (e3_raw_s, false) and not get_value (e3_raw_s [1], false) and 1 or 0) +
(get_value (e4_raw_s, false) and not get_value (e4_raw_s [1], false) and 1 or 0) +
(get_value (e5_raw_s, false) and not get_value (e5_raw_s [1], false) and 1 or 0) +
(get_value (e6_raw_s, false) and not get_value (e6_raw_s [1], false) and 1 or 0)
local shock_val = ready6 and (a5_v / a50_v) or 0
local raw_higher = ready6 and votes_l >= min_votes and shock_val >= shock_th and r2_v <= rsi_th
local raw_lower = ready6 and votes_s >= min_votes and shock_val >= 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 CRSI2 HIGHER",
shape_style.triangleup,
shape_size.small,
higher_color,
shape_location.belowbar,
-1,
"HIGHER",
signal_text_color
)
plot_shape (
confirmed_lower,
"R3 CRSI2 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
- Own panel
- Intermediate
KDJ Cross
Marks K/D crosses that happen while the faster J line is already stretched below 20 or above 80. J reaches the extremes first, so the cross after it is used as the timing event.
Indicators: KDJ (9, 3, 3)
- 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)
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.