> For the complete documentation index, see [llms.txt](https://docs.orionterminal.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.orionterminal.com/flags-variables-and-operators.md).

# 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>
