How to get portfolio PNL and set the maximum drawdown?

Author