# {{Плейсхолдеры}} TradingView

Плейсхолдеры используются для подстановки переменных в сообщение сигнала.

<table data-header-hidden><thead><tr><th width="375">Общие плейсхолдеры</th><th></th></tr></thead><tbody><tr><td><strong>Общие плейсхолдеры</strong></td><td></td></tr><tr><td><code>{{close}}</code></td><td>Цена сигнала</td></tr><tr><td><code>{{ticker}}</code></td><td>Название валютной пары</td></tr><tr><td><strong>Плейсхолдеры для стратегий</strong></td><td></td></tr><tr><td><code>{{strategy.order.action}}</code></td><td>Возвращает <strong>buy</strong> или <strong>sell</strong> в зависимости от направления ордера</td></tr><tr><td><code>{{strategy.order.contracts}}</code></td><td>Возвращает количество контрактов исполняемой заявки</td></tr><tr><td><code>{{strategy.order.price}}</code></td><td>Возвращает цену, при которой была исполнена заявка</td></tr><tr><td><code>{{strategy.order.id}}</code></td><td>Возвращает ID исполняемой заявки</td></tr><tr><td><code>{{strategy.order.comment}}</code></td><td>Возвращает комментарий исполняемой заявки. Если комментарий отсутствует, будет использовано значение <strong>strategy.order.id</strong></td></tr><tr><td><code>{{strategy.market_position}}</code></td><td>Возвращает текущую позицию стратегии в форме строки: "<strong>long</strong>", "<strong>flat</strong>" или "<strong>short</strong>"</td></tr><tr><td><code>{{strategy.market_position_size}}</code></td><td>Возвращает размер текущей позиции как абсолютную величину (неотрицательное число)</td></tr></tbody></table>

**Остались вопросы? Поможем в нашем Телеграм чате.**

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


---

# 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/ru/algo-trading/signals-tradingview/placeholders.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.
