A leveraged position effectively means borrowing from the exchange. That is, with, say, 100 USDN you can borrow another 200 USDN by a 2x leverage. This makes 300 USDN, out of which you can open a long position, trade 200 USDN for Waves and provide 100 USDN as a collateral. Now you have 200 USDN worth of Waves and 100 USDN set aside as a margin.

## Let's do math​

In fact, this margin acts as a collateral as soon as you open the position, so at this initial point it's safe to present the margin as:

$Margin = {Collateral}$

However, the margin isn't really a constant value. It changes along the way of the position being held and is affected by:

• Unrealized P&L

• Cumulative Funding Payment you have recieved

Therefore, to accurately access the actual margin size at a certain point in time, the following equation applies:

$Margin = {Collateral} +{ Unrealized PnL} + {Cumulative Funding Payment}$

## What's there to watch out for then?​

The accretion of the initial margin is a positive thing. Still, market conditions can easily win your profit back. With an open position at hand you should monitor this position health and see to it that the margin doesn't fall below the minimal value - or else you are going to face liquidation. The most typical context suggesting that the trader increases the margin is when there's a good reason to keep holdging the position open with a view to gain profit in the future, but there's also a good risk for this position to get liquidated right now.

You can increase the deposited margin as follows:

1. Scroll down to the Position health section:

2. Press Add. The following dialogue window appears:

3. Enter the USDN value to the Amount field, taking into account what liquidation price should be optimal for your trading strategy.