OPEN-SOURCE SCRIPT

Vùng đỉnh đáy chính theo phá vỡ (dùng line)

66
Indicator Name:
🔺 Key Swing Zones Based on Breakouts (Line-Based)

Short Description:
This indicator automatically detects and visualizes key swing highs and lows based on the principle of candle close breaking the wick of the previous candle, then classifies the current market trend as uptrend, downtrend, or neutral. It draws horizontal lines representing key zones and adds visual labels to help traders analyze market structure more clearly.

How It Works:
🔹 Reversal Signal Logic:

In an uptrend, if a candle closes below the previous candle's low, it marks a swing low.

In a downtrend, if a candle closes above the previous candle's high, it marks a swing high.

🔹 Structure Break Detection:

Price breaking above a key high → confirms an uptrend.

Price breaking below a key low → confirms a downtrend.

If price breaks a zone but doesn't form a new high/low → switches to neutral.

🔹 Visual Display:

Draws two horizontal lines: one at the key high, one at the key low.

Adds labels "Key High" or "Key Low" at the breakout points.

Zone color representation:

🟢 Green = Uptrend

🔴 Red = Downtrend

⚪ White = Neutral

免責聲明

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