Prosperity Swing BiasProsperity Swing Bias
A price action structure indicator that maps swing highs, swing lows, and structural breaks using a candle pullback confirmation system — no lagging indicators, no arbitrary lookback periods.
How It Works
Structure is built entirely from confirmed pullbacks. When price makes a move, the indicator waits for 2 or 3 opposing candles (your choice) to confirm a swing point. Each candle in the pullback must close beyond the full wick of the previous one. If price closes past the tracking extreme before the pullback completes, the count resets and starts fresh.
Once two swing points are confirmed, a trading range is established. A close beyond the range boundary triggers a Break of Structure (BOS) in trend, or a Change of Character (CHoCH) against it.
Features
- Swing Structure — BOS and CHoCH detection with HH/HL/LH/LL swing labels
- Internal Structure — Same logic running inside the current swing range, with independent display settings and an optional timeframe filter (show internals only on 1m, 5m, or 15m)
- Current Range Display — Horizontal lines marking the active swing high and swing low. Solid when confirmed, dashed while tracking. Extends forward so you can see where price needs to trade for the next break
- Pullback Confirmation — Choose between 2 or 3 candle pullbacks to suit your trading style. Toggle candle highlights to visualise exactly which candles confirmed each swing point
- Full Customisation — Independent colour, label size, and BOS/CHoCH filter settings for both swing and internal structure
Pine Script® indicator






















