OPEN-SOURCE SCRIPT
52-Week High & 20% Below

This indicator plots the rolling 52-week high along with a clear horizontal level 20% below that high.
The core idea behind this script:
For long-term investors who truly believe in a company’s fundamentals, a 20% drop from the 52-week high often represents a high-probability area to add to positions or start building a position.
This tool helps you visually identify those moments of temporary weakness in quality companies without getting caught up in short-term noise. It’s designed for patient, conviction-based investing — not for day trading or chasing momentum.
How to use it:
Watch for price approaching or touching the red 20% Below line on stocks you already like fundamentally.
Use it as a reference to scale into positions during pullbacks rather than trying to catch the absolute bottom.
Best used on daily charts for stocks, ETFs, or indices you intend to hold for years.
This is a simple visual aid to support a time-tested long-term investing approach: Buy quality companies when they go on sale.
The core idea behind this script:
For long-term investors who truly believe in a company’s fundamentals, a 20% drop from the 52-week high often represents a high-probability area to add to positions or start building a position.
This tool helps you visually identify those moments of temporary weakness in quality companies without getting caught up in short-term noise. It’s designed for patient, conviction-based investing — not for day trading or chasing momentum.
How to use it:
Watch for price approaching or touching the red 20% Below line on stocks you already like fundamentally.
Use it as a reference to scale into positions during pullbacks rather than trying to catch the absolute bottom.
Best used on daily charts for stocks, ETFs, or indices you intend to hold for years.
This is a simple visual aid to support a time-tested long-term investing approach: Buy quality companies when they go on sale.
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน