# Flags, Variables, and Operators

### Flags

<table><thead><tr><th width="172">Flag</th><th></th></tr></thead><tbody><tr><td><code>!ro</code></td><td>Makes order reduce only</td></tr><tr><td><code>!po</code></td><td>Makes order post only</td></tr></tbody></table>

### Global Variables

<table><thead><tr><th width="175">Name</th><th>Description</th></tr></thead><tbody><tr><td><code>last</code></td><td>Last traded price of symbol</td></tr><tr><td><code>ask</code></td><td>Best ask of symbol</td></tr><tr><td><code>bid</code></td><td>Best bid of symbol</td></tr><tr><td><code>best</code></td><td>Best bid for buys / Best ask for sells</td></tr><tr><td><code>mark</code></td><td>Market price of symbol, exchange calculated (varies)</td></tr><tr><td><code>index</code></td><td>Index price of the underlying of a derivative</td></tr><tr><td></td><td></td></tr><tr><td><code>entry</code></td><td>Position average entry</td></tr><tr><td><code>position</code></td><td>Position size</td></tr><tr><td><code>side</code></td><td>Position side (buy or sell)</td></tr><tr><td><code>close</code></td><td>Position close side (opposite of <code>side</code>)</td></tr></tbody></table>

### Operators for Variables

<table><thead><tr><th width="193"></th><th width="705.3333333333333"></th></tr></thead><tbody><tr><td><code>var+1%</code> or <code>var-1%</code></td><td>Percentages after variables or values will add or subtract the percentage from the variable</td></tr><tr><td><code>10%var</code></td><td>Percentages before variables will give you that percentage of the variable</td></tr><tr><td><code>var+1</code> or <code>var-1</code></td><td>Addition or subtraction to/from variables</td></tr><tr><td><code>var?1%</code></td><td>Equal to <code>+</code> if the position is long or <code>-</code> if it is short</td></tr></tbody></table>


---

# 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.orionterminal.com/flags-variables-and-operators.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.
