iqow-streak-bb-stretch-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
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.
The rules
HIGHER marker
Three consecutive red candles complete and the third candle closes at or below the lower Bollinger Band(20, 2.0), when the previous bar did not qualify.
LOWER marker
Three consecutive green candles complete and the third candle closes at or above the upper Bollinger Band(20, 2.0), when the previous bar did not qualify.
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 plots SMA(20) and the purple envelopes draw two population standard deviations above and below it. A green HIGHER triangle fires only when a three-bar selling streak finishes outside the lower band, ignoring isolated one-bar dips. A red LOWER triangle marks the mirror three-bar rally above the upper band.
Indicators used
- Bollinger Bands (20, 2.0 population)
- Consecutive candle color streak counter
Same view with built-in indicators: Add Bollinger Bands (period 20, deviations 2.0) and count three unbroken candles closing outside the upper or lower band.
Default settings
| Consecutive candle count | 3 |
|---|---|
| Bollinger band deviations | 2 |
Every value is an input in the script settings. Platform advice is off by default.
Key points
- Requires an unbroken three-candle directional streak instead of reacting to a single sudden wick outside the Bollinger Bands.
- Uses population standard deviation (20, 2.0) to match standard binary option charting packages.
- Generated 219,147 signals across 26 unseen windows (2020-2026) at 55.45% fixed and 55.97% walk-forward.
- Shows very low signal overlap with Big Body Fade (Jaccard 0.035) and Z-Score Fade (0.070), though 2025 lagged at 53.61%.
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 30-minute expiry. Break-even at 85% payout is 54.05%.
- 5m/30m · 26 windows
- 55.45%
- Walk-forward 26W
- 55.97%
- Unseen 2019-2026 all
- 55.54%
- Overlap vs 5m Top 2
- 56.99%
Fixed params across 26 unseen windows (2020-2026): n=219,147 trades, Wilson low95 55.24%, 18 of 26 windows above 54.05%.
Rolling out-of-sample selection: n=121,256 trades, low95 55.70%, 23 of 26 windows above break-even.
n=241,226 trades (low95 55.34%); 2025 dipped to 53.61%, rebounding in 2026 pre-Aug (55.88%) and Aug-Oct 2026 (55.74%).
Non-overlapping trades vs #1 Big Body Fade and #2 Z-Score Fade (max Jaccard 0.070); 9 of 10 coins cleared 54.05% (TRXUSDT 51.32%).
Binance 5m crypto spot study (30m expiry), distinct from the 1m/2m IQOW Ten leaderboard (#1 Big Body Fade, #2 Z-Score Fade). Avoid low-payout contracts (80% EV is negative at -0.0019) and weak trending altcoins such as TRXUSDT.
Limitations. Evaluated on Binance 5m spot crypto data (IQOW10 basket, 30m expiry), separate from the 1m/2m IQOW Ten leaderboard (#1 Big Body Fade, #2 Z-Score Fade). 9 of 10 coins beat 54.05% (TRXUSDT scored 51.32%), 2025 dipped to 53.61%, and 18 of 26 fixed windows cleared break-even (23/26 walk-forward). At 80% payout fixed EV is -0.0019, requiring 85%+ payouts. 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: cc50a49ae38ae86f505eac052ff789a8ea9e95b1657e5abfd9ff6fa99de2f3cf
-- SPDX-License-Identifier: MIT
-- IQOptionWiki QCS Library
-- IQOW Streak BB Stretch Fade v1.0.0
--
-- Requires a consecutive streak of same-color candles closing at or
-- outside an outer Bollinger Band before marking a counter-exhaustion setup.
--
-- HIGHER: At least 3 consecutive red bars with close <= SMA(20) - 2.0 population stdev.
-- LOWER: At least 3 consecutive green bars with close >= SMA(20) + 2.0 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 Streak BB Stretch Fade",
short_name = "IQOW STRKBB",
overlay = true
}
input_group {
"1. Streak and band settings",
streak_len = input (3, "Consecutive candle count", input.integer, 2, 10),
bb_mult = input (2.0, "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
red_flag = iff (close < open, 1, 0)
green_flag = iff (close > open, 1, 0)
red_count = sum (red_flag, streak_len)
green_count = sum (green_flag, streak_len)
local c_now = get_value (close, nil)
local u_now = get_value (upper_guide, nil)
local l_now = get_value (lower_guide, nil)
local sd_now = get_value (pop_sd, nil)
local rc = get_value (red_count, nil)
local gc = get_value (green_count, nil)
local data_is_ready =
c_now ~= nil and u_now ~= nil and l_now ~= nil and sd_now ~= nil and sd_now > 0 and
rc ~= nil and gc ~= nil
local raw_higher = data_is_ready and rc == streak_len and c_now <= l_now
local raw_lower = data_is_ready and gc == streak_len and c_now >= u_now
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,
"STRKBB HIGHER",
shape_style.triangleup,
shape_size.small,
higher_color,
shape_location.belowbar,
-1,
"HIGHER",
signal_text_color
)
plot_shape (
confirmed_lower,
"STRKBB 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.