PROTECTED SOURCE SCRIPT

ATH line from ATH candle

10
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
  1. A green horizontal line plotted at the latest ATH level (based on High by default, optional Close).
  2. 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
Inputs
  • 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.
Notes
  • 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).
If you have feature requests (e.g., show multiple ATH levels, add date of ATH, or use monthly/weekly ATH), feel free to comment.

면책사항

해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.