OPEN-SOURCE SCRIPT

Max Rise / Max Drawdown

This Pine Script indicator, titled 'Max Rise / Max Drawdown,' calculates and plots the maximum rise and maximum drawdown based on a specified length. It computes the percentage increase from a past low and decrease from a past high over the defined period, visually presenting this data on the chart. The indicator displays two lines: one for the maximum rise (colored lime) and another for the maximum drawdown (colored red), while also indicating thresholds at +0.01 and -0.01 with green and maroon horizontal lines respectively.
educational

Open-source script

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 publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer