> 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/placeholders.md).

# {{Placeholders}}

Placeholders are used to replace variables in signal messages.

<table data-header-hidden><thead><tr><th width="374">Общие плейсхолдеры</th><th></th></tr></thead><tbody><tr><td><strong>Common placeholders</strong></td><td></td></tr><tr><td><code>{{close}}</code></td><td>Signal price</td></tr><tr><td><code>{{ticker}}</code></td><td>Currency pair name</td></tr><tr><td><strong>Strategies</strong></td><td></td></tr><tr><td><code>{{strategy.order.action}}</code></td><td>Returns <strong>buy</strong> or <strong>sell</strong> based on order direction.</td></tr><tr><td><code>{{strategy.order.contracts}}</code></td><td>Returns the executed order's contract quantity.</td></tr><tr><td><code>{{strategy.order.price}}</code></td><td>Returns the order price</td></tr><tr><td><code>{{strategy.order.id}}</code></td><td>Returns the executed order ID</td></tr><tr><td><code>{{strategy.order.comment}}</code></td><td>Returns the executed order's comment, or <strong>strategy.order.id</strong> if there is no comment</td></tr><tr><td><code>{{strategy.market_position}}</code></td><td>Returns the strategy's current position as a string: "<strong>long</strong>", "<strong>flat</strong>" or "<strong>short</strong>"</td></tr><tr><td><code>{{strategy.market_position_size}}</code></td><td>Returns the current position size as an absolute value (non-negative number)</td></tr></tbody></table>

**Do you have any questions? We can 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/placeholders.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.
