OPEN-SOURCE SCRIPT
ที่อัปเดต:

52-Week High Line

415
52-Week High Line
This indicator automatically identifies and plots the highest price level reached over the past 52 weeks (252 trading days) directly on your chart as a horizontal line.
The line starts from the beginning of the 52-week lookback window and extends to the right, giving you a clear visual reference of where the annual resistance level sits at all times. The line updates only on the current live bar, so it remains stable as you scroll or pan through chart history.
Features:

- Plots the rolling 52-week high as a clean horizontal line
- Line anchors to the start of the current 52-week window, not the original high bar
- Label displays the exact 52-week high price level
- Fully customizable — line color, width, and style (Solid / Dashed / Dotted)
- Toggle label on or off

How to use:

- Price approaching or breaking above the 52-week high line signals potential breakout momentum
- Price consistently rejected below the line signals strong resistance
- Best used on the Daily timeframe for true 52-week accuracy. For other timeframes, adjust the lookback accordingly (Weekly = 52 bars, Monthly = 12 bars)

- Note: The default lookback of 252 bars is calibrated for stock markets. For crypto or forex (24/7 markets), change the lookback to 365 bars for daily charts.
Release Note
Updated version

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน