... | ... | @@ -50,6 +50,7 @@ Example: `buy 0.001 @9000` |
|
|
| **`projectedsize (prs)`** | When you have a long position, adds up your current position size and the total size of your bids. If you are short, adds your current position size to total size of all your offers. |
|
|
|
| **`projectedavg (pra)`** | Calculates the projected average entry after all current bids or offers are hit on the same side as your current position. |
|
|
|
| **--------------------------** | **----------- **New Features / Commands** -----------** |
|
|
|
| **`\|`** | This is a divider you can use to execute prior to the main command, if you need to set some values prior to your repeat running. This will run just the first time only. And NOT on subsequent repeats. For example: let x 0 \| wait, let x x+1, say testing, check value x, repeat 19`*** Now this will repeat from the **`\|`** onwards only. |
|
|
|
| Load Balancing: **`wait`** | **wait** on it's own - eg: `buy 1, **wait**, repeat` - will load balance themselves to queue up and release one every 100ms (round robin). So for example, you have that example command **`buy 1, wait, repeat`** running in 2 separate commands on 20 different instruments all running at the same time, it will queue all of those waits up, and then start releasing 1 of those waits every 100ms while keeping the other 19 on hold in the queue. So it will take 2 seconds to cycle through all 20 of those `wait` commands. Or if you had 5 of them, it would cycle through them all twice per second. Or if you had 100 it would take 10 seconds to cycle through all of them. So the point of this, is so you can effectively make all those commands run in one big serial operation. So that your commands are evenly distributed across multiple instruments. Rather than having to run one instrument after the other in serial. So even if you have the commands running in parallel, they will queue up and run those waits basically in serial. At a rate of 1 every 100ms. (We can adjust the timing to basically anything on the next deployment if there is any feedback about it). **NOTE: This will not affect normal wait orders - traditional waits still all work exactly as they always have. This is a new independent feature.** This would be really useful for `loop` commands. To basically round robin all the instruments even though you are running them in parallel. You can slip a **`wait`** in there and good to go. It's easier to see how it runs with a simple test below. It'll make sense when you run it. |
|
|
|
| Try this example: | ***`set kd: btcusdt,ethusdt,solusdt,ftmusdt,solusdt,bnbusdt,dogeusdt`*** and then ***`loop kd: let x 0 \| wait, let x x+1, say testing, check value x, repeat 19`*** here we have initially set x to be a value of 1 and then we use `\|` after that, to ensure the repeat doesn't reset x to 0 every time. So it only runs that part the first time. And every time it repeats, it adds +1 to x. So the number will increase by 1 every time it cycles through all the instruments one time, and simply prints that value on screen. And you can see the order numbers being run through on each instrument in round robin. |
|
|
|
| Option: **`skew`** | **Correction on use** - You can `split buy 1 into 20 from m-50 to m-350 skew 33` - and it will skew the same sized orders closer together, instead of scaling order sizes. Play around with the number. |
|
... | ... | @@ -214,15 +215,8 @@ Example: `buy 0.001 @9000` |
|
|
| **_Trigger Commands_** | [More Trigger Commands](https://gitlab.com/Ichimikichiki/ichibot-client-app/-/wikis/Home/Trigger-Commands) |
|
|
|
| **_Variable Commands_** | [More Variable Commands](https://gitlab.com/Ichimikichiki/ichibot-client-app/-/wikis/Home/6-Variable-System) |
|
|
|
| ................................/////// | |
|
|
|
|
|
|
**`\|`** This is a divider you can use to execute prior to the main command, if you need to set some values prior to your repeat running. This will run just the first time only. And NOT on subsequent repeats.
|
|
|
|
|
|
For example: `let x 500 | let x x-2, sell 1 x, repeat 19`
|
|
|
|
|
|
Now this will repeat from the `|` onwards only.
|
|
|
|
|
|
`instrument axs-perp, let x askprice, instrument axs/usd, let y bidprice, let b x-y | wait b > 0.4, instrument axs-perp, sell 100, instrument asx/usd, buy 100, wait 10, repeat 30`
|
|
|
|
|
|
|
|
|
|
|
|
# Error Codes
|
|
|
|
|
|
| Error Code | description |
|
... | ... | |