Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
ichibot-client-app
ichibot-client-app
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Requirements
    • Requirements
    • List
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Metrics
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • Ichimikichiki
  • ichibot-client-appichibot-client-app
  • Wiki
    • Home
  • Trigger Commands

Last edited by Ichimikichiki Apr 10, 2021
Page history

Trigger Commands

Trigger/Wait system

command description
Be careful bumping orders that are tagged with wait fill or wait close as the following order, as FTX handle price edits by cancelling the order and replacing them. So that'll trigger your next order.
terminate or fuck To cancel wait orders you must use terminate or fuck
Also the relative prices are evaluated when the command is executed. For instance if you use 1% from market price, it'll be 1% from when the order is triggered, rather than when you are placing it
wait <seconds> simply waits the given number of seconds eg buy 1 11000, wait 7, stop m-1% - waits 7 seconds after the previous order in a serial order string, before placing the next
wait close waits for the latest order to close. And order can close by being filled, rejected or cancelled. Can only be used if the previous command is a buy or sell command (eg can't be used on splits or chase orders. Chase orders don't require this (and cannot accept a wait trigger), since it's hardcoded into the chase system to wait until closed before moving onto the next order. You can ofc still use splits inside the serial order, but just can't use them as triggers
wait fill Wait until previous command is filled before continuing. Note this will break the chain completely if you cancel said order, or it'll just wait there indefinitely if it doesn't fill. Note these don't take up any margin, as it's all handled internally. (Can only be used if the previous command is a buy or sell command).
wait position Waits until the position on the current instrument is not zero.
wait price wait price < 9999, buy 1 - waits for price to hit 9999 before executing the next order - buy 1
wait upnl wait upnl > 9000, close futures
wait bidsize/asksize wait bidsize > 1000000, sell 1000000
wait fundingrate `wait fundingrate > 0.003, close all
wait markprice wait markprice > m+0.001% m+0.001% being market price +0.001% or ~$28
wait indexprice wait indexprice > markprice+0.0023%
wait candle 15 m wait candle 15 m, if lastprice < 33500, buy 1, else end - waits for the candle close, so you can combine that with price or whatever else we add later.
repeat Repeat the series up to the last ; for eg wait 5, buy 1, repeat 3 to run once, then repeat another 3 times for a total of 4 runs. Or repeat no specified number to just keep repeating on an infinite loop.
if - else Anti-stop-hunt stop (slow triggering stop with scaled check times to see if price is still below trigger price or not before executing) - wait markprice < 23500, wait 8, if markprice < 23500, close all, else, wait 15, if markprice < 23500, close all, else, wait 35, if markprice < 23500, close all, else, wait 150, if markprice < 23500, close all, else, end - in this example you can clearly see how you can continue - "if the next command is true, do this, otherwise continue on".
cmd list Shows a list of your string commands and their status / order
terminate marks all currently processing commands to be terminated - the immediate commands in execution may still get through but in parallel/serial batches no new commands will be started. Can be used in a serial order string as well. Does NOT affect chase - as that's a separate system.
terminate last Terminates just the last one.
fuck ichibot safe word. Same as terminate, but more appropriate and satisfying when you fuck it up.
...................................////////

Terminating Individual Wait Orders

command description
w2 = wait bidprice > 1000000 Attaches the tag "W2" to the wait order. w1 = wait 100, check value 1; w2 = wait 200, check value 2
cancel wait w2 Cancels that specific order. However, remember that will trigger the next order in the series to execute. cancel wait w2 (cancels the wait, terminating the rest)
pass wait w2 Ends the specific wait and proceeds with executing the rest of the command series. if 1 > 2, pass wait w1, else, pass wait w2
if 1 > 2, pass wait w1, else, pass wait w2
terminate last Terminates only the last wait order

Example

[global *] > w1 = wait 10000, check value 1; w2 = wait 10000, check value 2
 ::: w1 = wait 10000, check value 1; w2 = wait 10000, check value 2 
Processing 2 sub commands in parallel 
Processing 2 sub commands in serial 
Processing 2 sub commands in serial 
Waiting for 10000 seconds... 
Waiting for 10000 seconds... 
[global *] > if 1 > 2, pass wait w1, else, pass wait w2
 ::: if 1 > 2, pass wait w1, else, pass wait w2 
Processing 4 sub commands in serial 
Comparison "1 > 2" is false 
Time to wait passed. 
Value: 2 

Go To Variable System Wiki Page

Tip Jar:

  • BTC - 3L95ETWP3F8HLqUY4FD5CS8rkkFdpYjqKR
  • ETH - 0x6eb9A84CE93Cd61db02302f39B824AB155b69601
Clone repository

Get App:

  • MacOS
  • Linux
  • Windows
  • Web Console
  • Source Code

Instructions:

  1. Intro
  2. Setting up ichibot
  3. Overview
    -- General Commands
    -- Trigger / Wait Orders
    -- Variable System
    -- Alias System
    -- Replace Feature
    -- Ratelimit Overrides
  4. Advanced Examples
  5. Trigger Examples
  6. Variable Examples
  7. Stream Deck Integration
  8. AlphaBot Integration

  • Wiki Changelog

  • Discord Server
  • ichibot twitter
  • ichi's twitter
  • FTX Ref link
  • Bybit Ref Link