Greetings everyone! Algorithm and backtest attached. I'd like to keep my max drawdown each day to 4.5% using the code implementation below bu it doesn't seem to be working. Suggestions?

  1. self.SetRiskManagement(MaximumDrawdownPercentPortfolio(0.045))

However, as shown in the drawdown chart, this is not the case.

143616_1643169535.jpg

Any idea why this is? 

Author

James Hawkins

January 2022