> 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/update-settings-by-signal.md).

# Update settings by signal

If you need to update the module settings in an open position, send a signal containing '**update': true** in the module signal message parameters.

<figure><img src="https://t24536365.p.clickup-attachments.com/t24536365/f98cf898-8822-460b-834e-84fe382bdc9e/image.png" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
If you need to update the module parameters and average the position, send two separate signals. One signal will update the module, and the other signal will average the position.
{% endhint %}

## Take Profit update example

* It is mandatory to activate `"update": true` in **TP** module configuration.

<figure><img src="https://t24536365.p.clickup-attachments.com/t24536365/1a34b1b8-a918-4178-af42-c98e2cb4aae8/image.png" alt=""><figcaption></figcaption></figure>

* To update by price - add the "<mark style="color:yellow;">`price`</mark>" parameter to Take Profit settings:

```
{
  "name": "Hook 123",
  "secret": "234",
  "side": "buy",
  "symbol": "XRPUSDT",
  "tp": {
    "orders": [
      {
        "price": "0.326"
      },
      {
        "price": "0.329"
      },
      {
        "price": "0.331"
      }
    ],
    "update": true
  }
}

```

* To update by percentage, insert the required percentage into "<mark style="color:yellow;">`ofs`</mark>" field and add the "<mark style="color:yellow;">`price`</mark>" parameter with empty data, for example:

```
{
  "name": "Hook 123",
  "secret": "234",
  "side": "buy",
  "symbol": "XRPUSDT",
  "tp": {
    "orders": [
      {
        "ofs": "2",
        "price": "",
        "piece": "33.3"
      },
      {
        "ofs": "3.0",
        "price": "",
        "piece": "33.3"
      },
      {
        "ofs": "4",
        "price": "",
        "piece": "33.4"
      }
    ],
    "update": true
  }
}

```

**Do you have any questions? We can help you in our Telegram chat.**

{% 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/update-settings-by-signal.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.
