OPEN-SOURCE SCRIPT

Max Drawdown Awareness Overlay

173
Tracks the running peak of price (or any source) over a configurable lookback and shows the current drawdown from that peak plus the running maximum drawdown observed across the window. The chart shades when drawdown crosses your warning and critical thresholds. It does NOT generate buy or sell signals.

What it shows
- Running peak over the lookback
- Current drawdown from peak, in percent
- Maximum drawdown observed, with warning/critical shading

Honest by design
- No buy/sell signals. It is a risk-awareness overlay.
- Non-repainting: every value is a function of confirmed bars.

Open-source and MIT licensed.

Disclaimer: impersonal educational and analytics tool. This is not investment advice, not a personalised recommendation, and carries no performance guarantee. Past results do not predict future results. You are solely responsible for your own trading decisions.

Exención de responsabilidad

La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.