OPEN-SOURCE SCRIPT

Max Drawdown

2 592
This is how you'd code max drawdown for your strategies. Just replace le/se with your long/short conditions.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.