# UI Control

All UI commands are formatted like so:

`ui <component> <action>`

### CLI

* **Focus the CLI input field** itself so you can quickly type in the CLI: \
  `ui cli focus` e.g. `bind global ctrl+space "ui cli focus"`
* **CLI link color change**: `ui cli link_<color>` e.g. `ui cli link_orange`

### Place Order Form

* **Change ordertypes** with `ui order type_<ordertype>` of linked place order forms, e.g. `ui order type_chase` . Ordertype names are: limit, limitstop, click, chase, scale, scaleside, market, marketstop *or* stop, swarm, twap
* **Size and slider control** via `ui order size <size>` where \<size> can set an absolute amount or adjust relatively. E.g. do `bind global shift+right "ui order size +10%` to globally always bump your order size by 10% (% always refering to 100% max available size). Examples:
  * Absolute set:  &#x20;
    * ui order size 250    → set to 250 contracts/coins  &#x20;
    * ui order size 500$   → set to 500 USD (equivalent)  &#x20;
    * ui order size 40%   → set to 40 % of max size
  * Relative adjust works analogous, just put a + or - infront of the amount and the CLI will then adjust the size accordingly. e.g. `ui order size -100$`
* **Focus size inputs**: `ui order sizefocus` or `ui order sizefocus1` for first size-input, `ui order sizefocus2` for the 2nd USD-input
* **Use the Orderform size** for CLI commands via `$ordersize` (only focussed instrument)
* **Toggle quick buttons** in the linked orderform via `ui order quick<1-7>`
* **Use Quicksize button sizes** in the CLI via `$quick<1-7>`
* Toggle Reduce or Post via `btn_reduce` and `btn_post`
* Toggle Buy and Sell buttons via `btn_buy` and `btn_sell`

### Header

* **Toggle Designer Mode** via `ui header designer`
* **Toggle Sound** via `ui header sound`&#x20;
* **Toggle Reduce-Only Mode** via `ui header reduce`&#x20;

### Tabs

* **Change layout tabs** via `ui tab <name>`&#x20;

### Chart

* **Use a price from chart click** in CLI (= using price from ordermenu) with `$click` e.g. `buy 1 at $click` (only implicit instrument)
* **Change chart component timeframes** via e.g. `ui chart time_4h` or  `ui chart time_5m`&#x20;

### DOM

Using the **component** name "`dom`", you can control the order form with the following actions

<figure><img src="/files/UnmauLvnnDMIPbbE5o2c" alt=""><figcaption></figcaption></figure>

With the latest update the following buttons have been added for the DOM Orderform:

* Clear Profiles: btn\_clear\_profiles
* Freeze view: btn\_freeze
* Follow latest price: btn\_follow

Additionally, there are further binds actions available in the DOM settings menu:

<figure><img src="/files/ySgJvzJ2dNRKQKklGo6g" alt=""><figcaption></figcaption></figure>

For example, to control the "MKT. BUY" button type this into the CLI:

```
ui dom btn_mkt_buy
```

You can of course bind these to a hotkey in the usual way:

`bind global b "ui dom btn_mkt_buy"`


---

# 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.insilicoterminal.com/documentation/terminal-cli/ui-control.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.
