How to calculate margin, pip value and swap in MetaTrader 5

Before you place an order in MetaTrader 5 it helps to know three numbers: the margin — funds held to keep the position open; the pip value — how much a one-pip price move changes the result; and the swap — the fee or credit for keeping the position open overnight. All the inputs are in the contract specification of the symbol.

Where to find the inputs

In Market Watch (Ctrl+M) right-click the symbol and select Specification. Note these fields:

  • Contract size — the number of units in one lot;
  • Margin currency — the currency in which margin is calculated;
  • Profit currency — the currency in which profit is calculated;
  • Calculation — the method used for margin calculation;
  • Tick size and Tick value — the minimum price step and its value;
  • Swap type, Swap long, Swap short and the swap rates for each day of the week.

Margin

For symbols with the Forex calculation type MetaTrader 5 uses:

Margin = Volume in lots × Contract size / Leverage

The result is in the margin currency. It is converted into your account currency at the current exchange rate — the Ask price for buy deals and the Bid price for sell deals.

Example. A retail client buys 0.50 lot of EURUSD. The contract size is 100,000 and the leverage on major FX pairs for retail clients is 1:30.

  • 0.50 × 100,000 / 30 = 1,666.67 EUR
  • With a USD account and an illustrative EURUSD Ask price of 1.1700: 1,666.67 × 1.1700 = 1,950.00 USD

Retail leverage is 1:20 on minor FX pairs. For other instruments check the Calculation field and the margin values in the specification — the formula is different for CFDs on indices, shares and commodities.

Retail margin on other ABF Trade instruments: gold 5% (20:1), indices 5% (20:1), commodities 10% (10:1). ABF Trade applies these limits in accordance with ESMA/MiFID II rules, as implemented under the supervision of CySEC.

Pip value

For a currency pair:

Pip value in the quote currency = Pip size × Volume in lots × Contract size

Then convert it into your account currency if the two differ.

Example 1. 0.50 lot of EURUSD: 0.0001 × 0.50 × 100,000 = 5 USD per pip.

Example 2. 0.50 lot of GBPAUD: 0.0001 × 0.50 × 100,000 = 5 AUD per pip. With a USD account and an illustrative AUDUSD rate of 0.6500 this is 5 × 0.6500 = 3.25 USD per pip.

Use the pip value to translate a stop loss or take profit distance into money. A 40-pip stop on 0.50 lot of EURUSD is 40 × 5 = 200 USD, before any slippage.

Swap

Swap is charged or credited when a position is kept open overnight. In the specification:

  • Swap type shows how the swap is expressed (for example in points or as a percentage);
  • Swap long applies to buy positions, Swap short to sell positions;
  • the swap rates show the multiplier for each day of the week. The multiplier can be higher on one day of the week to account for the weekend.

At ABF Trade swap rates are updated daily, so the amount charged or credited can change from day to day. Swaps are not charged for Saturday and Sunday nights; to compensate, a triple swap is applied on one weekday, and the specification shows which day it is for each symbol.

Example from the MetaTrader 5 help. The swap for long positions is 1.5 USD, and the multiplier is 1 on every weekday except Wednesday, where it is 3. When the position is rolled over from Wednesday to Thursday, the swap is 3 × 1.5 = 4.5 USD; on the other weekdays it is 1.5 USD.

Margin call and stop out

At ABF Trade the margin call level is 100% and the stop-out level is 50%. Check the margin of a planned position against your free margin before you open it.

Frequently asked questions

What is swap in MetaTrader 5?

Swap is the amount charged or credited when a position is kept open overnight. Swap long applies to buy positions and Swap short to sell positions. At ABF Trade the rates are updated daily; you can see them in Market Watch → Specification.

How is margin calculated for EURUSD?

Volume in lots × contract size / leverage. For 1.00 lot of EURUSD at 1:30 leverage: 100,000 / 30 = 3,333.33 EUR, then converted into your account currency.

On which day is the triple swap charged?

On one weekday, set for each symbol. The day is shown in the symbol specification in MetaTrader 5.

Sources

66.7% of retail investor accounts lose money when trading CFDs with this provider. Assess if you're comfortable with this level of risk.

Make Your First Move in the Market

Open your trading account in minutes and start building your strategy with powerful trading tools.

66.7% of retail investor accounts lose money when trading CFDs with this provider. Assess if you're comfortable with this level of risk. Read more