Sweep Tracker

The script marks the bullish and bearish sweeps. You can change the number of lines drawn by modifying the value of max_lines_count in the first line of the code. Limiting feature will be available from menu in the next update.
Release Notes: Bugfix - Bullish sweep alert was being triggered on bearish sweeps.
Release Notes: Bugfix - Intermediate candles crossing the sweep line
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Want to use this script on a chart?