How can I calculate the Margin level percentage?

How can I calculate the Margin level percentage that appears underneath my trades in the Trade Tab. What is the formula?
Forex Trader:
How can I calculate the Margin level percentage that appears underneath my trades in the Trade Tab. What is the formula?

 AccountInfoDouble(ACCOUNT_MARGIN_LEVEL)