HARAZI SDT
Search… ⌘K
Binance
LIVE
HARAZI SDT V8 · LONGS ONLY

Pattern Reference

A complete walkthrough of every detection rule — rendered as real candles, annotated exactly as sdt_logic.py implements them. Every demo uses hand-crafted OHLCV that satisfies the rule precisely.

01

Overview — the full SDT flow

A complete SDT setup is a six-stage sequence. Price forms an SFP low, rallies to print two SFP highs (TARGET above MID), collapses into a 3R bottom, bounces above MID, completes a 3G breakout, and fires an entry with TP at TARGET and SL just below the 3R low.

Bullish candle Bearish candle SFP marker TP zone SL zone
02

SFP — Swing Failure Pattern

An SFP fires when price sweeps past a confirmed pivot then closes back on the original side. The extreme (the actual highest wick for an SFP HIGH, lowest wick for an SFP LOW) is what the setup measures against — not the pivot itself.

SFP HIGH — wick above pivot, close below
SFP LOW — wick below pivot, close above
03

3R — three red candles, strict wick chain

The bottom formation. o0 is the newest red, walking backward to o3 (the wick candle, any color). Each lower wick's TIP must land strictly inside the next (lower) candle's body AND the bodies must not overlap — the pattern is a descending ladder, not a cluster.

1
o0, o1, o2 are strictly bearishclose < open. o3 can be any color.
2
Wick must EXISTlow < body_bottom. No Doji / no-wick candle can start the chain.
3
Wick TIP strictly inside next bodyB.body_bot ≤ A.low ≤ B.body_top. Zero tolerance.
4
No body overlapA.body_bot ≥ B.body_top. A sits at or above B; they don't straddle.
✓ VALID — strict descending ladder
✗ INVALID — body overlap, no clean ladder
04

MID & TARGET — which SFP HIGHs matter

Once the 3R prints, the detector looks BACKWARD through every SFP HIGH recorded before the 3R bar and picks two of them:

MID
The most recent SFP HIGH (by bar index) that sits before the 3R bar. Becomes the first take-profit target.
TGT
The most recent SFP HIGH before 3R whose extreme > MID's extreme. Becomes the final TARGET. TP = MAX(TARGET extreme, highest high between TARGET and MID).
05

HH — highest-high resistance line

HH is the single highest price printed in the window [mid_sfp_bar, 3r_bar], inclusive. The 3G breakout candle g2 must close strictly above this level to be valid. If TARGET ≤ HH, no 3G can ever form — the setup is rejected immediately.

06

SL tracking — the 5-bar lock rule

Stop-loss management is the only invalidation channel before 3G fires. There's no time-based expiry; the setup lives until SL breaks or a 3G confirms. The rules differ between the first 5 bars after 3R and anything after.

1-5
Phase 1 (bars 1–5 after 3R) — SL is adjustable down.
  • body_bottom < SL → CANCELLED (hard kill on body close below)
  • low < SL but body holds → SL moves down to the new low
  • high ≥ TP → CANCELLED_TP (price hit target before 3G)
6+
Phase 2 (bar 6 onward) — SL is locked.
  • body_bottom < SL → CANCELLED
  • low < SL (any wick) → CANCELLED
  • high ≥ TP → CANCELLED_TP
07

3G — three green breakout candles

The mirror image of 3R, with an extra strictness twist. g2, g1, g0 are three consecutive BULLISH candles with upper wicks chaining UP into each next body. g3 is a separate anchor candle (any color) whose upper wick reaches into g2's body AND which g2 clearly broke above.

1
g2, g1, g0 are consecutive bullish barsclose > open, adjacent indices.
2
Upper wick chain (strict)A.high ∈ [B.body_bot, B.body_top] for (g3→g2), (g2→g1), (g1→g0).
3
Breakout strictnessg2.close > g3.high. g2 must clear g3's entire wick, not just touch the body.
4
g2 is the highest point since MID SFPH[k] < H[g2] for every bar k in [mid_sfp, g2-1].
5
g2 closes above HHg2.close > HH.
6
All 3 green highs below TARGETH[g2], H[g1], H[g0] < TARGET.
7
g3 = nearest prior candle in [mid_sfp, g2-1] satisfying rules 2 and 3 together. Any color.
08

⚡ SDT Fires — entry, TP, SL

The setup is LIVE the instant g0 closes. Entry is taken at g0's close. TP is placed at the TARGET SFP extreme. SL is whatever current_sl is at that moment — the original 3R low, possibly adjusted down during Phase 1. From this bar forward, the outcome is decided by whichever level gets hit first.

09

Win / Loss tracking

After g0, the setup is scanned forward bar by bar. Pine's optimistic order is preserved: TP is checked first, so if a single candle's wick touches both levels in the same bar, the outcome is WIN.

✓ WINhigh ≥ TARGET
✗ LOSSlow < SL
Keyboard shortcuts
Setups gs
Explorer ge
Backtest gb
Pattern gp
Settings g,
Command palette K
Focus symbol search /
Refresh page data r
Toggle this help ?
Close modal / clear Esc