OPEN-SOURCE SCRIPT
1-Year High/Low Mean (Daily Anchored)

This indicator calculates the highest high and lowest low over the past year using daily candles, then plots the mean (midpoint) between those two levels. The result is a clean, stable structural reference line that helps traders understand where current price sits within its yearly range.
What It Shows
These levels provide a long‑term framework for evaluating trend strength, momentum, and potential mean‑reversion behavior.
Designed for the Daily Timeframe
This indicator is intentionally built for the daily timeframe and higher.
All calculations are anchored to daily data, ensuring consistent and accurate yearly levels.
It does not display on intraday charts to avoid confusion caused by limited intraday history.
Features
Intended Use
Ideal for traders who want a simple, reliable way to visualize long‑term price structure.
Pairs well with trend‑following systems, breakout strategies, and mean‑reversion setups.
Future versions may include shaded zones, alerts, multi‑year modes, or additional structural tools depending on community interest.
What It Shows
- 1‑Year High – the highest daily high over the lookback period
- 1‑Year Low – the lowest daily low over the same period
- 1‑Year Mean – the midpoint between the yearly high and low
These levels provide a long‑term framework for evaluating trend strength, momentum, and potential mean‑reversion behavior.
Designed for the Daily Timeframe
This indicator is intentionally built for the daily timeframe and higher.
All calculations are anchored to daily data, ensuring consistent and accurate yearly levels.
It does not display on intraday charts to avoid confusion caused by limited intraday history.
Features
- Daily‑anchored yearly high, low, and mean
- Adjustable lookback period (default: 365 days)
- Optional display of the dates where the yearly high and low occurred
- Clean, minimal, structure‑focused design
Intended Use
Ideal for traders who want a simple, reliable way to visualize long‑term price structure.
Pairs well with trend‑following systems, breakout strategies, and mean‑reversion setups.
Future versions may include shaded zones, alerts, multi‑year modes, or additional structural tools depending on community interest.
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน