- tracking mode - to display last week/month's close
- history mode - to display weekly/monthly close prices
See how last month's close (ticker blue line) provides nice resistance and the price forms a then it consolidates under last week's close line (thiner blue line).
It also works on intraday charts and displays history close prices, see below how last month's close (ticker blue line) provides support over and over and also how price bounces off weekly close history prices (thiner blue line).
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.