# Additional Leverage Bot Utilities

Additional Leverage Bot Utilities

1\. Add Margin for Enhanced Risk Management

The add margin feature gives you more control over your position by adding extra funds, reducing the risk of liquidation. If margin is added too late and liquidation is already imminent, the bot may not have time to process it. Adding margin early, especially when your position is near the liquidation threshold, increases the chance of avoiding liquidation.

<figure><img src="/files/kK8zFJGCRlcT49dzDyZj" alt=""><figcaption></figcaption></figure>

Example

You start with $100 of your own funds and borrow $400, giving you a $500 position.

The asset price is $1 and, with 5x leverage, your liquidation price is $0.86. This is based on a 70% leverage buffer divided by your leverage amount: 70% ÷ 5 = 14%, $1.00 – 14% = $0.86.

If you add another $100 to make the position safer:

• You now have $200 of your own money in the trade.

• The position size remains $500 ($400 borrowed + $100 initial).

• New leverage = $500 ÷ $200 = 2.5x leverage.

• The buffer is 70% ÷ 2.5 = 28%.

• New liquidation price = $1 × (1 – 0.28) = $0.72.

2\. Enhanced Stop Loss and Take Profit Management

You can add, edit, or remove stop-loss and take-profit orders after opening a trade. They can be set from the open trade menu when tracking your position using the command /trackall or by clicking “check positions.” This flexibility lets you adjust your risk and profit targets as market conditions change.

**Disclaimer**

**Stop-loss and take-profit orders are not guaranteed and should only be used when you cannot monitor your trades. Due to volatility, we cannot guarantee that any stop-loss or take-profit will trigger accurately or effectively. 0xLeverage assumes no liability for the final PNL of any position closed with either a stop-loss or take-profit.**


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.0xleverage.io/overview/0xleverage-trading-bot/additional-leverage-bot-utilities.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
