implemented sudden_drawdown calculation