Swing Top / Bottom Finder

An effective way of finding swing tops and bottoms on a chart.

This indicator detects both, history-tested and potential swing highs and lows. It does so by comparing current high or low with the last X candles into history and if it finds at least Y candles with a high/low at the approximately same price level, it will mark this high/low on a chart.

This indicator is not based off any values that change over time with market, such as RSI, MACD or any other linear lagging indicators. Instead, it uses Price Action to calculate where a high/low is probable.

Every option has an explanation tooltip that should help you understand what exactly that setting does.

Indicator comes with various alert options, including one to serve them all (choose the "any alert() function call" option for that one).
Release Notes:
ability to change high/low line visuals
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.


The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?