iqow-band-decel-exhaustion-fade.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
Detects three consecutive losing or gaining closes whose step size shrinks on each bar while price reaches the outer Bollinger Band(20, 1.8), isolating fading momentum at a 15-minute expiry.
The rules
HIGHER marker
Three consecutive negative close-to-close steps shrink in magnitude while the third close reaches or pierces the lower Bollinger Band(20, 1.8), with no signal on the bar before.
LOWER marker
Three consecutive positive close-to-close steps shrink in magnitude while the third close reaches or pierces the upper Bollinger Band(20, 1.8), with no signal on the bar before.
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
The cyan line is SMA(20) and the purple lines sit 1.8 population standard deviations above and below it. A green HIGHER triangle triggers selectively when a three-bar decline loses speed at the lower band. A red LOWER triangle flags a three-bar advance losing momentum at the upper band.
Indicators used
- Bollinger Bands (20, 1.8 population)
- 3-bar close-to-close deceleration detector
Same view with built-in indicators: Add Bollinger Bands (period 20, deviations 1.8) on a 5m chart and watch for three consecutive closes in one direction with shrinking candle-to-candle steps.
Default settings
| Bollinger band deviations | 1.8 |
|---|
Every value is an input in the script settings. Platform advice is off by default.
Key points
- Looks for momentum deceleration—three steps in the same direction where each step gets smaller into the Bollinger Band.
- Virtually zero overlap with Big Body Fade (Jaccard 0.000) and Z-Score Fade (0.0003), giving an independent signal stream.
- Cleared the 54.05% break-even in every calendar year from 2019 through 2026 on Binance 5m IQOW10 pairs at 15m expiry.
- Much lower frequency than standard band fades and needs 85%+ payouts, since 80% payout turns EV slightly negative (-0.0025).
What the research found
The evidence behind this script
Tested on Binance 5m IQOW10 crypto spot data (2020-2026, 26 unseen walk-forward windows plus 2019-2026 holdout) at a 15-minute expiry. Break-even at 85% payout is 54.05%.
- 5m/15m · 26 windows
- 55.41%
- Unseen 2019-2026 all
- 55.54%
- Walk-forward 26W
- 55.19%
- Overlap vs 5m Top 2
- 56.53%
Fixed params across 26 unseen windows (2020-2026): n=49,149 trades, Wilson low95 54.97%, 22 of 26 windows above 54.05%.
n=53,683 trades (low95 55.12%); every calendar year 2019-2026 beat 54.05% (2025 54.50%, Aug-Oct 2026 59.10%).
Rolling out-of-sample selection: n=23,608 trades, low95 54.55%, 20 of 26 windows above break-even.
Non-overlapping trades vs #1 Big Body Fade and #2 Z-Score Fade (Jaccard 0.000 vs BB, 0.0003 vs ZS); 9 of 10 coins cleared 54.05%.
Tested on Binance 5m crypto spot candles (15m expiry), a different timeframe and expiry from the 1m/2m IQOW Ten leaderboard (#1 Big Body Fade, #2 Z-Score Fade). Very sparse signals and weak TRXUSDT performance (51.19%).
Limitations. Evaluated on Binance 5m spot crypto data (IQOW10 basket, 15m expiry), separate from the 1m/2m IQOW Ten leaderboard (#1 Big Body Fade, #2 Z-Score Fade). Fires sparingly (n=49,149 over 26 windows). 9 of 10 coins cleared 54.05% while TRXUSDT scored 51.19%, and 80% payout fixed EV is -0.0025. Internal research only; 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: 83dfe36433fcdb256f32fcad0911c973b432a5ecf5192f7c5daf70d21e9569e6
-- SPDX-License-Identifier: MIT
-- IQOptionWiki QCS Library
-- IQOW Band Decel Exhaustion v1.0.0
--
-- Identifies 3-bar shrinking directional momentum thrusts arriving
-- at or outside an outer Bollinger Band.
--
-- HIGHER: 3 shrinking negative bar moves (r2 < r1 < r0 < 0) closing <= SMA(20) - 1.8 population stdev.
-- LOWER: 3 shrinking positive bar moves (r2 > r1 > r0 > 0) closing >= SMA(20) + 1.8 population stdev.
--
-- 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 Band Decel Exhaustion",
short_name = "IQOW DECELBB",
overlay = true
}
input_group {
"1. Deceleration and band",
bb_mult = input (1.8, "Bollinger band deviations", input.double, 1.0, 4, 0.1, 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 }
}
mid_guide = sma (close, 20)
pop_sd = stdev (close, 20) * math.sqrt (19 / 20)
upper_guide = mid_guide + bb_mult * pop_sd
lower_guide = mid_guide - bb_mult * pop_sd
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 u0 = get_value (upper_guide, nil)
local l0 = get_value (lower_guide, nil)
local sd0 = get_value (pop_sd, nil)
local data_is_ready =
c0 ~= nil and c1 ~= nil and c2 ~= nil and c3 ~= nil and
u0 ~= nil and l0 ~= nil and sd0 ~= nil and sd0 > 0
local r0 = data_is_ready and (c0 - c1) or 0
local r1 = data_is_ready and (c1 - c2) or 0
local r2 = data_is_ready and (c2 - c3) or 0
local raw_higher = data_is_ready and r2 < 0 and r1 < 0 and r0 < 0 and r2 < r1 and r1 < r0 and c0 <= l0
local raw_lower = data_is_ready and r2 > 0 and r1 > 0 and r0 > 0 and r2 > r1 and r1 > r0 and c0 >= u0
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,
"DECELBB HIGHER",
shape_style.triangleup,
shape_size.small,
higher_color,
shape_location.belowbar,
-1,
"HIGHER",
signal_text_color
)
plot_shape (
confirmed_lower,
"DECELBB 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
- Beginner
Stochastic PSAR
Marks a Stochastic %K/%D cross that starts in the oversold or overbought zone while the Parabolic SAR dot is on the matching side of price. The Stochastic gives the timing and the SAR checks the trailing stop agrees.
Indicators: Stochastic (14, 3, 3) · Parabolic SAR (0.02, 0.2)
- Reversal
- On price
- Intermediate
Streak BB Stretch Fade
Waits for at least three consecutive same-color 5-minute candles pushing price outside the Bollinger Bands(20, 2.0) before flagging a counter-trend exhaustion setup on the completed bar.
Indicators: Bollinger Bands (20, 2.0 population) · Consecutive candle color streak counter
- Reversal
- Own panel
- Intermediate
Three Oscillators
Counts how many of three oscillators have just crossed back out of their extreme zone and marks the candle where at least two agree. It follows the article's trio setup, where all three is strongest and two of three is enough.
Indicators: RSI (14, 30/70) · CCI (20, +/-100) · Williams %R (14, -80/-20)
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.