Margin is the money you set aside; leverage is the ratio between the position and that margin.
If you open a 10,000 € position with 1,000 € of margin, leverage is 10. The margin is collateral that stays locked while the position is open.
Margin 500 €, position 5,000 €: leverage 10. If the position loses 500 €, the margin is gone.
The more margin used relative to your capital, the closer you are to a margin call.
Thinking margin is a "fee": it is your own money, tied up.
Margin = locked collateral; leverage = position ÷ margin.
Related mission : Leverage and margin
Practise on Doji Academy