> For the complete documentation index, see [llms.txt](https://docs.finandy.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.finandy.com/algo-trading/signals-tradingview/connection-and-configuration/hedging.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.finandy.com/algo-trading/signals-tradingview/connection-and-configuration/hedging.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
