This script calculates the ratio of the asset's closing price to its 20-week moving average (20W MA) and visualizes it as a color-coded line chart. The script also includes a customizable moving average (default: 111-day MA) to help smooth the ratio trend.
It identifies overbought and oversold conditions relative to the 20W MA, making it a valuable tool for long-term trend analysis.