liquidity locates resting stop-loss clusters at Equal Highs (EQH / Buy-Side Liquidity) and Equal Lows (EQL / Sell-Side Liquidity), and marks causal Swing Failure Pattern (SFP) wick sweeps that close back inside.
Parameters
| Parameter | Default | Range | Type | Timeframe overrides |
|---|---|---|---|---|
window |
500 |
60..2000 |
integer | — |
pivotSpan |
3 |
2..10 |
integer | 4 on <= 5m, 2 on >= 1d |
tolAtr |
0.25 |
0.05..1.5 |
number | — |
maxPools |
4 |
1..8 |
integer | — |
maxSweeps |
4 |
0..8 |
integer | — |
Algorithm & Nuances
- Equal Highs (
BSL) & Equal Lows (SSL):- Greedily clusters fractal swing highs (and separately swing lows) within
tol = tolAtr * atr[n - 1]of the running cluster mean. - Requires at least
2touches separated by at least5bars (lastIdx - firstIdx >= 5). - Pool price snaps to the outer extreme (
max(h)forBSL,min(l)forSSL). - Drops broken pools where any candle after
firstIdxclosed beyondlevel. Flagsswept = trueif a later bar wicks> 0.05 * atr[k]pastleveland closes back inside. - Scores by
r2((touches * (1 + min((lastIdx - firstIdx) / n, 0.75))) / (1 + distAtr / 4)), balancingceil(maxPools / 2)BSLandceil(maxPools / 2)SSLpools.
- Greedily clusters fractal swing highs (and separately swing lows) within
- Causal
SFPStop-Hunt Sweeps:- For every confirmed swing at index
j, scans forward starting atk = j + pivotSpan + 1(strictly after right-side pivot confirmation). - Stops scanning a swing if a candle closes past it. Logs a sweep on the first bar wicking
> 0.05 * atr[k]beyond the swing and closing back inside. - Records
sweepDepthAtr, relative volumevolRatio,source('eq_pool'vs'swing'), andfollowThrough(whether any of the next1–3closes moved in the reversal direction). - Deduplicates per
(side, bar)favoringeq_poolover single swings, then deeper sweeps; keeps the most recentmaxSweeps.
- For every confirmed swing at index
Drawings & Facts
- Drawings:
- Up to
maxPoolsdashed extendedtrendlinerays labeledEQH ×N('down') orEQL ×N('up'). - Up to
maxSweepsmarklabels (Sweep ↓above /'down',Sweep ↑below /'up').
- Up to
- Facts (
LiquidityFacts):lastClose,pools[], andsweeps[].
Activation
- Studies menu:
Liquidity: equal highs, lows and sweeps(Liq) - Slash command:
/liquidity - Chat phrases:
liquidity,liq,eqh,eql,sweep,sfp,stops,bsl,ssl,equal highs,equal lows