|
|
Aliases are shortcuts / hotkeys to your commands. You simply press the up arrow on an order you just made, go to the start, and put `alias x` at the start. Then the next time you want to execute that command - you simply type "x" and hit enter.
|
|
|
|
|
|
## Global Aliases - `instrument *`
|
|
|
- You can set a global alias that can be called in any instrument.
|
|
|
- It will only affect the instrument you're in.
|
|
|
- Stick it under `instrument *` in your `initrun.txt` file or type `instrument *` and save the alias from the `[global *] >` prompt.
|
|
|
- Executing a global alias under a specific instrument such as `[BTC-PERP] >` will *only* affect BTC-PERP.
|
|
|
- Warning: If you *execute* a `close all` or `cancel all` while actually in `instrument *` it will close all your positions / cancel all your orders for any contract / order you have open on all instruments.
|
|
|
- Just a reminder: don't use numbers as aliases... it's going to be pretty awkward when you go buy 2 and it does something unexpected because you saved an alias as "2".
|
|
|
- [ ] You can set a global alias that can be called in any instrument.
|
|
|
- [ ] It will only affect the instrument you're in.
|
|
|
- [ ] Stick it under `instrument *` in your `initrun.txt` file or type `instrument *` and save the alias from the `[global *] >` prompt.
|
|
|
- [ ] Executing a global alias under a specific instrument such as `[BTC-PERP] >` will *only* affect BTC-PERP.
|
|
|
- [ ] Warning: If you *execute* a `close all` or `cancel all` while actually in `instrument *` it will close all your positions / cancel all your orders for any contract / order you have open on all instruments.
|
|
|
- [ ] Just a reminder: don't use numbers as aliases... it's going to be pretty awkward when you go buy 2 and it does something unexpected because you saved an alias as "2".
|
|
|
|
|
|
## Planning your keyboard layout (hotkeys assignments)
|
|
|
- [ ] I set all my buy orders on the left half of keyboard
|
|
|
- [ ] All my sell aliases on the right half of keyboard
|
|
|
- [ ] Sometimes I'll use things like `[` for buy and `]` for sell
|
|
|
- [ ] I set up extra aliases for double and triple presses of the same key to execute larger sizes
|
|
|
|
|
|
## Example Contract Specific Aliases (in this case for BTC-PERP) and Global Aliases at the end with `instrument *`
|
|
|
```ruby
|
... | ... | |