OPEN-SOURCE SCRIPT
已更新

3cf

849
This indicator identifies and signals the points of swing highs and swing lows on the price chart using an algorithm based on market structure. Local highs and lows are highlighted with a colored dot, making it easier to perform technical analysis and recognize trend reversals.

The indicator analyzes a predefined number of bars (e.g., 5 candles) to determine relative highs and lows:

Swing High (Local High) → The current candle has a higher high compared to the previous and subsequent candle.
Swing Low (Local Low) → The current candle has a lower low compared to the previous and subsequent candle.
When a candle meets one of these conditions, a visual dot is placed to indicate the potential reversal point.
發行說明
Added a toggle option to enable or disable the display of local highs and lows in the script. This is done using an input(true, title="Show max/min") checkbox, which allows users to control whether the plotted markers for highs and lows are shown. The plotshape functions are modified to check the enableDisplay variable, ensuring that the circles are only drawn when the option is enabled.

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。