Follow the steps below to calculate your available margin:
The Margin Used represents how much of your Net Asset Value is currently held as margin against your open positions. The Margin Used is equal to the position size multiplied by the Margin Requirement, summed up over all open positions.
EXAMPLE: You have a USD account with maximum leverage set to 20:1 and a long 10,000 EUR/GBP open position. The current rate for EUR/USD is 1.1320/1.1321, therefore the current midpoint rate of EUR/USD is 1.13205.
For the leverage calculation, the lower of the maximum regulated leverage and your selected leverage is used. The regulator allows 50:1 leverage on EUR/GBP, but because you have selected a 20:1 leverage for your account, a leverage of 20:1 (or 5% margin requirement) is used.
Your margin used is position size x Margin Requirement = 10,000 EUR x 5% = 500 EUR.
The Margin Used in your account currency = 500 x 1.13205 = 566.025 USD.
The Margin Available value is the greater of 0 and your Net Asset Value minus your Margin Used.
The Margin Closeout Value is equal to your balance plus your unrealized P/L from all open positions, converted into the currency of the account, all calculated using the current midpoint rates.
EXAMPLE: You have a USD account with balance of 1,000 USD and a long 10,000 EUR/USD open position opened at a rate of 1.1200. The current rate of EUR/USD is 1.13200/1.13210, therefore the current midpoint rate of EUR/USD is 1.13205.
Your unrealized P/L calculated by the current midpoint rate is (current midpoint rate – open rate) x position size = (1.13205 – 1.1200) x 10,000 = 120.50 USD.
Your Margin Closeout Value is 1,000 + 120.50 = 1,120.50 USD.
The Initial Margin for a trade is equal to the trade size multiplied by the Margin Requirement. This amount is then converted into the currency of the account. When opening a new trade, your Initial Margin must be less than or equal to your Margin Available. If your Initial Margin is greater than your Margin Available, you cannot open the trade.