Pine Script Maximum drawdown calculation formula has been changed

We’ve changed the way Max Drawdown is calculated for the Strategy Tester.

From now on, strategy.max_drawdown variable as well as Max Drawdown fields in the report are going to be calculated using a new formula that is based on NetProfit.

Note that we also used to include OpenProfit in the past.

We hope that you’ll find this new adjustment helpful. Feel free to get in touch with us if you have any suggestions for improvement.

April 27, 2018
spread the love