# 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 Reduce-Only Mode** via `ui header reduce`<br>

### 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="https://1855557010-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuzWZkA5631kraBpRETyN%2Fuploads%2F1RYqSob5b4HUiRk3zvjT%2FScreenshot%202025-07-31%20at%2014.20.23.png?alt=media&#x26;token=116970a9-735b-40b0-af74-f1a378be2870" 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="https://1855557010-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuzWZkA5631kraBpRETyN%2Fuploads%2FZREDRghK8Cvyfdo0TbAv%2FScreenshot%202025-07-31%20at%2015.58.26.png?alt=media&#x26;token=8c266d29-17d3-471f-84fb-928c32cd2d3b" 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"`
