It's a bit different in FX trading, after you open a position there are four variables that are important to you: , equity, used margin (constant), free margin and margin level.
Margin (used) is position size divided by leverage,
Equity is Balance - Floating P/L (profit/loss - swaps - spreads...