What Gap Levels does
Gap Levels is a free indicator by DinexSpace for TradingView. Marks the gap at the daily session open and tracks it until it is filled.
Enable JavaScript to see the chart.
Chart powered by TradingView Lightweight Charts™ (Apache-2.0 license). tradingview.com
The candles and indicator lines above come straight from the MT5 version running in the Strategy Tester (XAUUSD H1); nothing is recalculated in the browser. Press ▶ to replay bar by bar.
Gap Levels marks the price gap between the previous day's close and the new day's open, so you can see which gaps are still open. Each gap is drawn as a shaded zone that extends to the right until price trades back through it.
When to use it
Use it when you trade around the open.
Features and modes
Gap Levels has 4 documented features, listed below.
How it works
- At the first bar of a new day the script compares the open with the previous close. If the difference is at least a set share of the daily ATR (0.10 by default), a zone is drawn between the two prices: green for a gap up, aqua for a gap down.
- While a gap is open, its zone shrinks as price moves into it, so the remaining unfilled part is always visible.
- A gap counts as filled when price reaches the previous close again. Filled gaps are removed, or kept in grey if you prefer.
- The label shows the gap size in price and in daily ATR units. The ATR uses completed days only.
Parameters
Gap Levels has 8 inputs; every input and its default is listed below.
- Gaps: minimum size in daily ATR, ATR length, maximum number of open gaps, keep filled gaps.
- Style: colours for gaps up and down, label on/off.
- Alert: optional alert when a gap is fully filled (use "Any alert() function call").
| Input | Default |
|---|---|
| Gaps | |
| Minimum gap (x daily ATR) | 0.10 |
| Daily ATR length | 14 |
| Keep at most this many open gaps | 10 |
| Keep filled gaps on the chart (grey) | false |
| Style | |
| Gap up | color.new(C_GREEN, 80) |
| Gap down | color.new(C_AQUA, 80) |
| Label with the gap size | true |
| Alert | |
| Alert when a gap is fully filled | false |
Signals
Gap Levels does not generate buy or sell signals. It is an analysis tool: you read what it plots and make your own decisions.
Alerts
Yes. Gap Levels has built-in alerts: TradingView – alert conditions for Create Alert.
Buffers for Expert Advisors
Not applicable. Gap Levels is a TradingView script; indicator buffers for EAs are an MT5 feature.
Timeframes and markets
Works on intraday and daily charts.
- On weekly and monthly charts there is no daily gap to draw.
Limitations
Gap Levels is an analysis tool, not a trading system. Its documented limitations are listed below.
- The "day" follows the symbol's session. On markets that trade around the clock, such as crypto, daily gaps are usually tiny and the ATR filter hides most of them.
- Works on intraday and daily charts. On weekly and monthly charts there is no daily gap to draw.
- A gap that is open now may or may not be filled later. The tool shows levels and does not predict price.
This script only marks price levels. It does not give trade signals or investment advice.
Pine Script code
Paste the whole script into the Pine Editor on TradingView.
gap_levels.pine · 90 lines//@version=6
// DinexSpace | Gap Levels
// Marks the gap between the previous day's close and the new day's open as a zone, extends it to the right until
// price trades back through it, and shrinks it as it is partly filled. Gaps smaller than a share of the daily ATR
// are ignored. Shows levels only: it gives no trade signals.
// Free and open source. License: MIT. (c) 2026 DinexSpace
indicator("DinexSpace | Gap Levels", shorttitle = "DNX Gaps", overlay = true, max_boxes_count = 200, max_labels_count = 200)
// ===== Brand colours =====
C_GREEN = #00FF7F // SpringGreen: gap up
C_AQUA = #00FFFF // Aqua: gap down
C_GRAY = #9AA0A6
// ===== Inputs =====
GRP_G = "Gaps"
minAtr = input.float(0.10, "Minimum gap (x daily ATR)", minval = 0, step = 0.05, group = GRP_G)
atrLen = input.int(14, "Daily ATR length", minval = 1, maxval = 100, group = GRP_G)
maxOpen = input.int(10, "Keep at most this many open gaps", minval = 1, maxval = 50, group = GRP_G)
keepFil = input.bool(false, "Keep filled gaps on the chart (grey)", group = GRP_G)
GRP_S = "Style"
colUp = input.color(color.new(C_GREEN, 80), "Gap up", inline = "c", group = GRP_S)
colDn = input.color(color.new(C_AQUA, 80), "Gap down", inline = "c", group = GRP_S)
showLbl = input.bool(true, "Label with the gap size", group = GRP_S)
GRP_A = "Alert"
useAlt = input.bool(false, "Alert when a gap is fully filled", group = GRP_A)
// Daily ATR of completed days only ([1] with lookahead_on: no look-ahead).
float atrD = request.security(syminfo.tickerid, "D", ta.atr(atrLen)[1], lookahead = barmerge.lookahead_on)
// One open gap: its zone, label, the level that fills it and its direction.
type Gap
box zone
label tag
float fillLevel
bool up
var array<Gap> gaps = array.new<Gap>()
// Closes a gap: grey and stopped, or deleted.
closeGap(Gap g) =>
if keepFil
g.zone.set_bgcolor(color.new(C_GRAY, 88))
g.zone.set_border_color(color.new(C_GRAY, 70))
g.zone.set_right(bar_index)
if not na(g.tag)
g.tag.set_textcolor(C_GRAY)
else
g.zone.delete()
g.tag.delete()
// ===== New gap at the first bar of a new day =====
bool newDay = timeframe.change("D")
float prevClose = close[1]
if newDay and not na(prevClose) and not na(atrD) and bar_index > 0
float gap = open - prevClose
if math.abs(gap) > 0 and math.abs(gap) >= minAtr * atrD
bool up = gap > 0
color c = up ? colUp : colDn
box z = box.new(bar_index, math.max(open, prevClose), bar_index, math.min(open, prevClose), border_color = color.new(c, 40), bgcolor = c, extend = extend.none)
label t = na
if showLbl
string txt = (up ? "Gap up " : "Gap down ") + str.tostring(math.abs(gap), format.mintick) + " (" + str.tostring(math.abs(gap) / atrD, "0.00") + " ATR)"
t := label.new(bar_index, up ? math.max(open, prevClose) : math.min(open, prevClose), txt, style = up ? label.style_label_lower_left : label.style_label_upper_left, color = color(na), textcolor = up ? C_GREEN : C_AQUA, size = size.small)
gaps.push(Gap.new(z, t, prevClose, up))
if gaps.size() > maxOpen
Gap old = gaps.shift()
old.zone.delete()
old.tag.delete()
// ===== Extend, shrink and close open gaps =====
// A gap up is filled when price trades down to the previous close; until then its upper edge follows the lowest
// low since the gap (and the opposite for a gap down). The bar that opened the gap is skipped.
if gaps.size() > 0
for i = gaps.size() - 1 to 0
Gap g = gaps.get(i)
if g.zone.get_left() < bar_index
bool filled = g.up ? low <= g.fillLevel : high >= g.fillLevel
if filled
closeGap(g)
gaps.remove(i)
if useAlt
alert(syminfo.ticker + ": " + (g.up ? "gap up" : "gap down") + " filled at " + str.tostring(g.fillLevel, format.mintick), alert.freq_once_per_bar)
else
if g.up
g.zone.set_top(math.min(g.zone.get_top(), low))
else
g.zone.set_bottom(math.max(g.zone.get_bottom(), high))
g.zone.set_right(bar_index)
if not na(g.tag)
g.tag.set_x(bar_index)
Gap Levels FAQ
Gap Levels is free, runs on TradingView and does not place trades.
Is Gap Levels free?
Yes. Gap Levels is free to download from this page with no sign-up, and the download includes the full source code.
Which platforms does Gap Levels run on?
Gap Levels is available for TradingView (Pine Script v6).
Does Gap Levels give buy and sell signals?
Gap Levels does not generate buy or sell signals. It is an analysis tool: you read what it plots and make your own decisions.
Does Gap Levels have alerts?
Yes. Gap Levels has built-in alerts: TradingView – alert conditions for Create Alert.
Can an EA read Gap Levels?
Not applicable. Gap Levels is a TradingView script; indicator buffers for EAs are an MT5 feature.
Which timeframes does Gap Levels work on?
Works on intraday and daily charts.
Does Gap Levels place trades?
No. It is a read-only indicator: it only reads market data and shows the result on the chart or writes it to a file. The source contains no calls that open, close or modify orders.
How do I install Gap Levels?
Download the .zip and follow the step-by-step installation guide for TradingView: https://indicators.dinexspace.com/install-guide/
Measured win rates (backtest)
Measured (signal-by-signal check against MT5: in progress)
Out of sample on H1: 4 of 15 symbols above break-even after costs.
Swipe sideways to see every timeframe.
| Symbol | M15 | H1 | H4 | D1 |
|---|---|---|---|---|
| AUDUSD | 61.4% (n=44; break-even 61.5%) | 61.0% (n=41; break-even 55.1%) | 59.1% (n=44; break-even 52.7%) | 56.8% (n=44; break-even 51.2%) |
| AUS200 | 38.7% (n=204; break-even 63.3%) | 49.2% (n=181; break-even 56.3%) | 45.2% (n=147; break-even 53.6%) | 46.2% (n=144; break-even 52.2%) |
| BNB | – | – | – | – |
| BTCUSD | – | – | – | – |
| ETHUSD | – | – | – | – |
| EURUSD | – | 51.4% (n=35; break-even 53.5%) | 48.5% (n=33; break-even 51.7%) | – |
| GBPUSD | 42.9% (n=35; break-even 59.6%) | 65.0% (n=40; break-even 53.7%) | 39.5% (n=43; break-even 51.9%) | 38.9% (n=36; break-even 50.8%) |
| GER40 | 51.7% (n=118; break-even 53.6%) | 50.8% (n=132; break-even 51.6%) | 48.6% (n=146; break-even 50.8%) | 51.8% (n=141; break-even 50.3%) |
| JP225 | 50.2% (n=205; break-even 55.5%) | 52.4% (n=187; break-even 53.0%) | 49.8% (n=200; break-even 51.5%) | 48.5% (n=171; break-even 50.6%) |
| NAS100 | 43.6% (n=39; break-even 51.5%) | 47.4% (n=38; break-even 50.7%) | 52.8% (n=36; break-even 50.4%) | 52.8% (n=36; break-even 50.2%) |
| NZDUSD | 52.4% (n=42; break-even 68.3%) | 63.6% (n=44; break-even 56.9%) | 62.8% (n=43; break-even 53.5%) | 31.8% (n=44; break-even 51.5%) |
| SOLUSD | – | – | – | – |
| UK100 | 46.8% (n=126; break-even 63.9%) | 52.8% (n=126; break-even 55.9%) | 51.2% (n=130; break-even 52.6%) | 53.7% (n=123; break-even 51.1%) |
| US30 | 39.0% (n=41; break-even 52.3%) | 47.4% (n=38; break-even 51.1%) | 38.7% (n=31; break-even 50.5%) | 41.2% (n=35; break-even 50.2%) |
| US500 | 36.8% (n=38; break-even 54.2%) | 53.3% (n=30; break-even 51.8%) | 55.6% (n=36; break-even 51.0%) | 45.5% (n=33; break-even 50.5%) |
| USDCAD | 32.6% (n=43; break-even 62.2%) | 53.5% (n=43; break-even 55.4%) | 68.8% (n=32; break-even 52.9%) | 40.0% (n=30; break-even 51.2%) |
| USDCHF | 33.3% (n=51; break-even 65.0%) | 33.3% (n=54; break-even 55.4%) | 44.7% (n=39; break-even 52.9%) | 48.8% (n=41; break-even 51.2%) |
| USDJPY | 55.0% (n=40; break-even 59.2%) | 38.9% (n=36; break-even 54.3%) | 48.8% (n=41; break-even 52.1%) | 48.6% (n=37; break-even 50.9%) |
| WTI | 38.2% (n=34; break-even 55.2%) | 41.9% (n=31; break-even 52.7%) | 56.7% (n=30; break-even 51.3%) | 56.7% (n=30; break-even 50.5%) |
| XAGUSD | – | – | – | – |
| XAUUSD | – | –measured up to 2024-10-16 | – | – |
No data: HK50, KOSPI
Swipe sideways to see every timeframe.
| Symbol | M15 | H1 | H4 | D1 |
|---|---|---|---|---|
| AUDUSD | – | 48.5% (n=132; break-even 51.3%) | 53.5% (n=157; break-even 50.6%) | 53.7% (n=162; break-even 50.3%) |
| AUS200 | 46.7% (n=638; break-even 54.8%) | 48.3% (n=625; break-even 52.1%) | 44.1% (n=594; break-even 51.2%) | 45.7% (n=523; break-even 50.7%) |
| BNB | – | – | – | – |
| BTCUSD | – | – | – | – |
| ETHUSD | – | – | – | – |
| EURUSD | – | 45.8% (n=120; break-even 51.0%) | 50.5% (n=109; break-even 50.6%) | 46.7% (n=122; break-even 50.2%) |
| GBPUSD | – | 38.9% (n=131; break-even 51.0%) | 39.0% (n=141; break-even 50.5%) | 46.8% (n=126; break-even 50.2%) |
| GER40 | 41.7% (n=115; break-even 51.6%) | 53.6% (n=1385; break-even 50.1%) | 52.2% (n=1382; break-even 50.0%) | 52.7% (n=1284; break-even 50.0%) |
| JP225 | 52.5% (n=1376; break-even 50.4%) | 51.7% (n=1319; break-even 50.2%) | 50.8% (n=1242; break-even 50.1%) | 49.8% (n=1086; break-even 50.1%) |
| NAS100 | – | 52.8% (n=161; break-even 50.0%) | 50.0% (n=158; break-even 50.0%) | 49.3% (n=136; break-even 50.0%) |
| NZDUSD | – | 48.1% (n=187; break-even 52.9%) | 50.0% (n=202; break-even 51.4%) | 52.7% (n=186; break-even 50.6%) |
| SOLUSD | – | – | – | – |
| UK100 | 46.6% (n=161; break-even 55.0%) | 47.2% (n=1140; break-even 50.3%) | 47.1% (n=1111; break-even 50.1%) | 48.5% (n=963; break-even 50.1%) |
| US30 | – | 57.1% (n=175; break-even 50.1%) | 54.6% (n=185; break-even 50.0%) | 51.5% (n=167; break-even 50.0%) |
| US500 | – | 53.6% (n=179; break-even 50.2%) | 53.0% (n=181; break-even 50.1%) | 49.7% (n=173; break-even 50.0%) |
| USDCAD | – | 41.1% (n=129; break-even 51.1%) | 48.0% (n=127; break-even 50.6%) | 51.0% (n=104; break-even 50.3%) |
| USDCHF | – | 47.3% (n=146; break-even 51.8%) | 50.0% (n=142; break-even 50.8%) | 54.5% (n=156; break-even 50.4%) |
| USDJPY | – | 56.4% (n=156; break-even 51.1%) | 54.3% (n=162; break-even 50.6%) | 44.9% (n=158; break-even 50.3%) |
| WTI | – | 48.8% (n=166; break-even 50.1%) | 53.3% (n=165; break-even 50.0%) | 43.9% (n=164; break-even 50.0%) |
| XAGUSD | – | 41.5% (n=130; break-even 58.7%) | 45.6% (n=114; break-even 54.9%) | 49.5% (n=103; break-even 52.2%) |
| XAUUSD | – | 53.7% (n=121; break-even 51.5%) | 51.8% (n=141; break-even 50.7%) | 56.3% (n=119; break-even 50.4%) |
No data: HK50, KOSPI
Also measured: 1:2 and 1:3 TP win rates
| Sample · symbol · timeframe | 1:2 | 1:3 |
|---|---|---|
| Out of sample: 2024-01-01 to 2026-11-16 · AUDUSD · M15 | 47.7% | 31.8% |
| Out of sample: 2024-01-01 to 2026-11-16 · AUDUSD · H1 | 43.9% | 29.3% |
| Out of sample: 2024-01-01 to 2026-11-16 · AUDUSD · H4 | 36.4% | 25.0% |
| Out of sample: 2024-01-01 to 2026-11-16 · AUDUSD · D1 | 29.5% | 19.1% |
| Out of sample: 2024-01-01 to 2026-11-16 · AUS200 · M15 | 27.9% | 24.0% |
| Out of sample: 2024-01-01 to 2026-11-16 · AUS200 · H1 | 33.1% | 25.4% |
| Out of sample: 2024-01-01 to 2026-11-16 · AUS200 · H4 | 28.8% | 24.0% |
| Out of sample: 2024-01-01 to 2026-11-16 · AUS200 · D1 | 25.2% | 16.8% |
| Out of sample: 2024-01-01 to 2026-11-16 · EURUSD · H1 | 22.9% | 17.1% |
| Out of sample: 2024-01-01 to 2026-11-16 · EURUSD · H4 | 30.3% | 18.2% |
| Out of sample: 2024-01-01 to 2026-11-16 · GBPUSD · M15 | 31.4% | 25.7% |
| Out of sample: 2024-01-01 to 2026-11-16 · GBPUSD · H1 | 47.5% | 27.5% |
| Out of sample: 2024-01-01 to 2026-11-16 · GBPUSD · H4 | 25.6% | 20.9% |
| Out of sample: 2024-01-01 to 2026-11-16 · GBPUSD · D1 | 22.2% | 16.7% |
| Out of sample: 2024-01-01 to 2026-11-16 · GER40 · M15 | 34.8% | 30.5% |
| Out of sample: 2024-01-01 to 2026-11-16 · GER40 · H1 | 34.1% | 26.5% |
| Out of sample: 2024-01-01 to 2026-11-16 · GER40 · H4 | 33.1% | 26.9% |
| Out of sample: 2024-01-01 to 2026-11-16 · GER40 · D1 | 36.7% | 27.2% |
| Out of sample: 2024-01-01 to 2026-11-16 · JP225 · M15 | 36.1% | 29.9% |
| Out of sample: 2024-01-01 to 2026-11-16 · JP225 · H1 | 33.9% | 26.3% |
| Out of sample: 2024-01-01 to 2026-11-16 · JP225 · H4 | 35.2% | 25.4% |
| Out of sample: 2024-01-01 to 2026-11-16 · JP225 · D1 | 31.9% | 25.1% |
| Out of sample: 2024-01-01 to 2026-11-16 · NAS100 · M15 | 28.2% | 20.5% |
| Out of sample: 2024-01-01 to 2026-11-16 · NAS100 · H1 | 34.2% | 24.3% |
| Out of sample: 2024-01-01 to 2026-11-16 · NAS100 · H4 | 34.3% | 22.9% |
| Out of sample: 2024-01-01 to 2026-11-16 · NAS100 · D1 | 33.3% | 25.7% |
| Out of sample: 2024-01-01 to 2026-11-16 · NZDUSD · M15 | 35.7% | 30.9% |
| Out of sample: 2024-01-01 to 2026-11-16 · NZDUSD · H1 | 45.5% | 34.1% |
| Out of sample: 2024-01-01 to 2026-11-16 · NZDUSD · H4 | 37.2% | 27.9% |
| Out of sample: 2024-01-01 to 2026-11-16 · NZDUSD · D1 | 20.4% | 13.6% |
| Out of sample: 2024-01-01 to 2026-11-16 · UK100 · M15 | 30.2% | 19.8% |
| Out of sample: 2024-01-01 to 2026-11-16 · UK100 · H1 | 35.2% | 26.4% |
| Out of sample: 2024-01-01 to 2026-11-16 · UK100 · H4 | 35.9% | 25.8% |
| Out of sample: 2024-01-01 to 2026-11-16 · UK100 · D1 | 39.7% | 28.7% |
| Out of sample: 2024-01-01 to 2026-11-16 · US30 · M15 | 24.4% | 24.4% |
| Out of sample: 2024-01-01 to 2026-11-16 · US30 · H1 | 21.1% | 13.2% |
| Out of sample: 2024-01-01 to 2026-11-16 · US30 · H4 | 16.7% | 16.7% |
| Out of sample: 2024-01-01 to 2026-11-16 · US30 · D1 | 38.2% | 35.3% |
| Out of sample: 2024-01-01 to 2026-11-16 · US500 · M15 | 28.9% | 23.7% |
| Out of sample: 2024-01-01 to 2026-11-16 · US500 · H1 | 40.0% | 33.3% |
| Out of sample: 2024-01-01 to 2026-11-16 · US500 · H4 | 33.3% | 25.7% |
| Out of sample: 2024-01-01 to 2026-11-16 · US500 · D1 | 33.3% | 30.3% |
| Out of sample: 2024-01-01 to 2026-11-16 · USDCAD · M15 | 20.9% | 16.3% |
| Out of sample: 2024-01-01 to 2026-11-16 · USDCAD · H1 | 39.5% | 23.3% |
| Out of sample: 2024-01-01 to 2026-11-16 · USDCAD · H4 | 43.8% | 28.1% |
| Out of sample: 2024-01-01 to 2026-11-16 · USDCAD · D1 | 40.0% | 23.3% |
| Out of sample: 2024-01-01 to 2026-11-16 · USDCHF · M15 | 17.6% | 11.8% |
| Out of sample: 2024-01-01 to 2026-11-16 · USDCHF · H1 | 24.1% | 22.2% |
| Out of sample: 2024-01-01 to 2026-11-16 · USDCHF · H4 | 28.9% | 26.3% |
| Out of sample: 2024-01-01 to 2026-11-16 · USDCHF · D1 | 36.6% | 29.3% |
| Out of sample: 2024-01-01 to 2026-11-16 · USDJPY · M15 | 42.5% | 27.5% |
| Out of sample: 2024-01-01 to 2026-11-16 · USDJPY · H1 | 25.0% | 22.2% |
| Out of sample: 2024-01-01 to 2026-11-16 · USDJPY · H4 | 36.6% | 27.5% |
| Out of sample: 2024-01-01 to 2026-11-16 · USDJPY · D1 | 22.9% | 20.0% |
| Out of sample: 2024-01-01 to 2026-11-16 · WTI · M15 | 17.6% | 11.8% |
| Out of sample: 2024-01-01 to 2026-11-16 · WTI · H1 | 22.6% | 22.6% |
| Out of sample: 2024-01-01 to 2026-11-16 · WTI · H4 | 33.3% | 23.3% |
| Out of sample: 2024-01-01 to 2026-11-16 · WTI · D1 | 40.0% | 31.0% |
| In sample: through 2023-12-31 · AUDUSD · H1 | 34.8% | 25.9% |
| In sample: through 2023-12-31 · AUDUSD · H4 | 33.8% | 26.1% |
| In sample: through 2023-12-31 · AUDUSD · D1 | 39.5% | 24.7% |
| In sample: through 2023-12-31 · AUS200 · M15 | 33.1% | 25.8% |
| In sample: through 2023-12-31 · AUS200 · H1 | 33.8% | 25.4% |
| In sample: through 2023-12-31 · AUS200 · H4 | 29.6% | 21.4% |
| In sample: through 2023-12-31 · AUS200 · D1 | 28.7% | 21.1% |
| In sample: through 2023-12-31 · EURUSD · H1 | 30.0% | 21.7% |
| In sample: through 2023-12-31 · EURUSD · H4 | 33.9% | 23.8% |
| In sample: through 2023-12-31 · EURUSD · D1 | 32.8% | 21.3% |
| In sample: through 2023-12-31 · GBPUSD · H1 | 25.9% | 22.1% |
| In sample: through 2023-12-31 · GBPUSD · H4 | 24.8% | 18.4% |
| In sample: through 2023-12-31 · GBPUSD · D1 | 29.4% | 24.6% |
| In sample: through 2023-12-31 · GER40 · M15 | 32.2% | 19.1% |
| In sample: through 2023-12-31 · GER40 · H1 | 34.8% | 26.4% |
| In sample: through 2023-12-31 · GER40 · H4 | 35.9% | 26.7% |
| In sample: through 2023-12-31 · GER40 · D1 | 33.7% | 24.2% |
| In sample: through 2023-12-31 · JP225 · M15 | 36.0% | 27.9% |
| In sample: through 2023-12-31 · JP225 · H1 | 36.5% | 28.7% |
| In sample: through 2023-12-31 · JP225 · H4 | 34.5% | 26.3% |
| In sample: through 2023-12-31 · JP225 · D1 | 31.8% | 24.6% |
| In sample: through 2023-12-31 · NAS100 · H1 | 35.4% | 24.4% |
| In sample: through 2023-12-31 · NAS100 · H4 | 33.5% | 25.3% |
| In sample: through 2023-12-31 · NAS100 · D1 | 35.3% | 30.1% |
| In sample: through 2023-12-31 · NZDUSD · H1 | 31.0% | 23.0% |
| In sample: through 2023-12-31 · NZDUSD · H4 | 35.1% | 24.8% |
| In sample: through 2023-12-31 · NZDUSD · D1 | 32.3% | 23.1% |
| In sample: through 2023-12-31 · UK100 · M15 | 27.3% | 19.9% |
| In sample: through 2023-12-31 · UK100 · H1 | 29.8% | 21.7% |
| In sample: through 2023-12-31 · UK100 · H4 | 29.3% | 21.1% |
| In sample: through 2023-12-31 · UK100 · D1 | 31.7% | 20.6% |
| In sample: through 2023-12-31 · US30 · H1 | 36.2% | 27.8% |
| In sample: through 2023-12-31 · US30 · H4 | 35.3% | 28.3% |
| In sample: through 2023-12-31 · US30 · D1 | 28.9% | 22.9% |
| In sample: through 2023-12-31 · US500 · H1 | 31.3% | 20.8% |
| In sample: through 2023-12-31 · US500 · H4 | 32.6% | 24.9% |
| In sample: through 2023-12-31 · US500 · D1 | 33.5% | 24.3% |
| In sample: through 2023-12-31 · USDCAD · H1 | 27.1% | 18.6% |
| In sample: through 2023-12-31 · USDCAD · H4 | 29.1% | 19.7% |
| In sample: through 2023-12-31 · USDCAD · D1 | 32.7% | 26.9% |
| In sample: through 2023-12-31 · USDCHF · H1 | 32.9% | 24.7% |
| In sample: through 2023-12-31 · USDCHF · H4 | 37.3% | 30.3% |
| In sample: through 2023-12-31 · USDCHF · D1 | 36.5% | 23.1% |
| In sample: through 2023-12-31 · USDJPY · H1 | 43.6% | 34.6% |
| In sample: through 2023-12-31 · USDJPY · H4 | 39.5% | 31.5% |
| In sample: through 2023-12-31 · USDJPY · D1 | 36.1% | 23.4% |
| In sample: through 2023-12-31 · WTI · H1 | 25.9% | 21.7% |
| In sample: through 2023-12-31 · WTI · H4 | 31.5% | 23.6% |
| In sample: through 2023-12-31 · WTI · D1 | 23.2% | 18.9% |
| In sample: through 2023-12-31 · XAGUSD · H1 | 26.2% | 16.2% |
| In sample: through 2023-12-31 · XAGUSD · H4 | 32.5% | 26.3% |
| In sample: through 2023-12-31 · XAGUSD · D1 | 31.1% | 22.3% |
| In sample: through 2023-12-31 · XAUUSD · H1 | 35.5% | 28.1% |
| In sample: through 2023-12-31 · XAUUSD · H4 | 37.6% | 29.8% |
| In sample: through 2023-12-31 · XAUUSD · D1 | 37.8% | 29.4% |
What counts as a win
- W1: take profit before stop loss. Stop loss = 1.5 × ATR(14) Wilder of the signal bar; shown take profit = 1 × stop loss (1:1). Entry is at the signal bar close. Buy pays the spread at entry; sell pays it at exit. If stop loss and take profit occur in the same M15 bar, count a loss. No result within 200 bars is not counted.
- W2 direction after 5, 10 and 20 bars is measured too.
- Default inputs require confluence ≥ 4/7.
- In sample: first bar to 2023-12-31; out of sample: 2024-01-01 to 2026-11-16.
- Costs: Real spread of an ECN-type MT5 account, no commission.
- Data source: MT5 tick data (BNB: Binance spot).
- Cells with fewer than 30 signals show –.
TradingView H4/D1 bars may follow the exchange time zone of the TradingView symbol, not the MT5 server time (UTC) used for the measurement; sessions and the H4 trend may differ on the Pine version. Same signals on TradingView not checked yet.
Arrows show one rate for all markets: 49% (n = 20926).
What this version adds
- Standard Gap Levels versions on MT5 or TradingView do not show a measured win rate for their signals.
- Every arrow shows its measured win rate, e.g. "Buy 1:1 49% all mkts (n=20926)" (one rate for all markets: the per-market rates were not better out of sample). Measured on 20 MT5 symbols + BNB, M15 to D1, in and out of sample.
- Signals on closed bars only; 7-factor confluence score, by default only signals scoring 4/7 or more.
- ATR-based SL/TP suggestions, per-bar odds, standard buffers for EAs, one alert per closed bar.
- On gold: GII panel and an optional GII side filter (off by default: GII is not validated yet).
Past test statistics are not a promise of future results.