Formula - Maximum Drawdown

 

Attempting to display real time drawdown on chart account.

To confirm is Maximum Drawdown the highest point in Equity to the lowest point in Equity as a percentage?

What would be the correct formula?

 

Thanks Rosh and I already know the explanation as dicussed here 'Maximal drawdown'

What I'm asking is the exact formula to add to an indicator I'm doing. I've noticed Drawdown code on other indicators show completely different formulas.

 
There are two maximal drawdown terms - in money and as a percentage. These values may be difference. See for example Better's Report page