How this works: tracks PAXG (Pax Gold on Binance) as a live proxy for XAUUSD candles, since there's no free key-free feed for interbank spot gold. A recent swing high/low becomes a "level." When a candle wicks past that level but closes back on the safe side, it's scored on wick depth, reclaim distance, close position, volume, and 4H EMA-50 trend alignment (weights: 30/25/20/15/10). Score ≥ your threshold → a SWEEP. With confirmation on, it then waits up to 13 bars for a close to break the last minor swing (an 8-bar pivot) — a change of character — before firing as a SIGNAL. Note: your screenshots specified the scoring weights but not the exact formulas, so the underlying math here is my best-effort implementation of the same logic — every constant is commented in the code if you want to retune it.