# Hedging

## Indicator

{% hint style="danger" %}
In hedging mode, when setting the position type to "**Both**", the closing signal <mark style="color:red;">**will not**</mark> be recognized correctly.

​![](https://t24536365.p.clickup-attachments.com/t24536365/f4c8a6ec-88cc-4b7a-b5e9-deac8c22c32f/image.png)
{% endhint %}

The indicator is designed for one-way mode only (without hedging).&#x20;

If hedging mode is enabled, specify "**Long Only**" or "**Short Only**" in the Position parameter.

<figure><img src="https://t24536365.p.clickup-attachments.com/t24536365/86f01231-df9c-42dd-9426-cdd68968b3bf/image.png" alt=""><figcaption></figcaption></figure>

## Strategy

Set "**PositionSide: Strategy**" (1) and "**Order: Strategy**" (2) as shown in image and **save** (3).

<figure><img src="https://t24536365.p.clickup-attachments.com/t24536365/50693727-828f-463d-b091-3adf21d1d34a/image.png" alt=""><figcaption></figcaption></figure>

**Do you have any questions? Let us help you in our Telegram chat room.**

{% embed url="<https://t.me/finandy>" %}


---

# 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.finandy.com/algo-trading/signals-tradingview/connection-and-configuration/hedging.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.
