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. اقرأ المزيد في شروط الاستخدام.