PROTECTED SOURCE SCRIPT
ATH line from ATH candle

ATH Line from ATH Candle draws a horizontal line at the instrument’s most recent All-Time High (ATH) and keeps it extended to the right for an easy visual reference.
What it shows
What it shows
- A green horizontal line plotted at the latest ATH level (based on High by default, optional Close).
- A label plotted to the right of the most recent candle displaying:
- ATH: the ATH price (rounded to 0 decimals)
- [xw]: how many weeks ago that ATH was set (rounded to 0 decimals)
- Diff: current price vs ATH in % (close / ATH − 1) rounded to 0 decimals
- Use High (else Close): choose whether ATH is calculated from candle highs or closes.
- Label bars to the right: moves the label further right to avoid overlapping the current price.
- The indicator always tracks the latest ATH. When a new ATH is made, the line and label update automatically.
- Results depend on the available historical data for the symbol (ATH is computed from loaded history).
نص برمجي محمي
تم نشر هذا النص البرمجي كمصدر مغلق. ومع ذلك، يمكنك استخدامه بحرية ودون أي قيود - تعرف على المزيد هنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي محمي
تم نشر هذا النص البرمجي كمصدر مغلق. ومع ذلك، يمكنك استخدامه بحرية ودون أي قيود - تعرف على المزيد هنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.