# 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: 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/update-settings-by-signal.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.
