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

DirectionXABCD
BullishLowHighLowHighLow → Buy
BearishHighLowHighLowHigh → Sell

The PRZ is the price band between C and D.

Fibonacci Ratios

FIB_TOLERANCE = 0.05 (5%) applies to all isNear checks.

LegMeasurementTargetCheck Type
ABRetracement of XA0.382–0.5inRange
BCRetracement of AB0.382–0.886inRange
ADRetracement of XA0.886isNear (exact)

Confidence

Confidence is based on the AD leg only:

confidence = 1 − adError

Clamped to [0, 1].

SL/TP

  • SL: beyond X (or prevSwingPrice if 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.