The Sweep Detector identifies liquidity sweeps by detecting when a swing high or low is broken only by the wick of a candle, ensuring the body does not close beyond the level. It highlights these sweep points with markers and draws a line from the broken level to the candle that triggered the sweep. This helps traders spot potential reversals and liquidity grabs in the market.