It's a pretty simple widget to track all-time high and all-time low values.
You can plot the levels and display some stats when all-time happened and how far away are we at this moment.
Also, you can create alerts to get notified on ATH/ATL breakout.
Thanks to @Verleiht for helping me with the code.
Disclaimer
Please remember that past performance may not...
Unlike other scripts, which compare against the all time high, this allows you to specify the window over which the high should be searched.
If you want to compare against the all time high, just choose a long enough window.