Python
Drawdown Chart in Python: Underwater Plot and Maximum Drawdown with pandas
Calculate drawdowns with price / price.cummax() - 1, plot an underwater chart with Matplotlib, find the maximum drawdown and its recovery date, and compare two portfolios.