OPEN-SOURCE SCRIPT

Swing Highs and Lows

Swing Highs and Lows Indicator:
This custom indicator identifies and marks significant swing highs and lows on the price chart. It calculates pivots based on user-defined left and right bars, plotting small circles on the main pivot candle when a swing high or low is found.

Key Features:
Swing Size Input: Adjust the number of bars to the left and right of the current bar to define the swing high and low.
Pivot Calculation: Automatically detects pivot highs and lows based on price action.
Visual Marking: Displays tiny circles at swing highs and lows for easy identification.
This tool is useful for traders looking to identify key turning points in the market, which can assist in making more informed entry and exit decisions.
Candlestick analysisChart patternsCycles

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 publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer