Bat Pattern
The Bat is a 5-point XABCD harmonic pattern. Its defining characteristic is the deep 0.886 AD retracement — the shallowest possible D point before X is violated — giving a tight stop placement.
XABCD Structure
| Direction | X | A | B | C | D |
|---|---|---|---|---|---|
| Bullish | Low | High | Low | High | Low → Buy |
| Bearish | High | Low | High | Low | High → Sell |
The PRZ is the price band between C and D.
Fibonacci Ratios
FIB_TOLERANCE = 0.05 (5%) applies to all isNear checks.
| Leg | Measurement | Target | Check Type |
|---|---|---|---|
| AB | Retracement of XA | 0.382–0.5 | inRange |
| BC | Retracement of AB | 0.382–0.886 | inRange |
| AD | Retracement of XA | 0.886 | isNear (exact) |
Confidence
Confidence is based on the AD leg only:
confidence = 1 − adError
Clamped to [0, 1].
SL/TP
- SL: beyond X (or
prevSwingPriceif more extreme), ±0.1% buffer - TP1: D + 0.382 × |A − D|
- TP2: D + 0.618 × |A − D|
- TP3: A price
Levels are scalable via per-pattern TradingConfig multipliers. See TP Level Calculation.