I'm sorry, can't you just calculate strategy.max_drawdown and strategy.max_drawdown_percent?
strategy.max_drawdown
strategy.max_drawdown_percent