Task 1 - Automatically close position when profit over $9000.
-
wait pnl > 9000, sell 100%possize
Task 2 - Automatically convert half your uPNL every $400 from USD to BTC on spot and then take you back to BTC-PERP prompt.
-
let x pnl, let xy x+400, wait pnl >= xy, instrument btc/usd, buy 0.02, instrument btc-perp, repeat 10
Task 3 - Wait for the spoof $1m buy wall (62 BTC) to appear and snatch it.
-
wait bidsize >= 62, sell 62
Task 4 - Close your underwater short position with a chaser at breakeven.
-
wait price < breakeven, chase buy 100%possize max breakeven
Task Five - Make a command that loops 10 times, increases by +1 on each run
-
let x x+1, check value x, repeat 10
Task Six - Close all positions when account down 50%
-
let x accountvalue-50%, wait accountvalue < x, instrument *, close all
Task Seven - Close position when account up 100%
-
let x accountvalue+100%, wait accountvalue > x, close all
You can check the value of any variable buy doing check value
. Eg check value breakeven
, check value accountvalue
, check value accountvalue-50%
etc
Go Back To Main Wiki Page
Tip Jar:
- BTC - 3L95ETWP3F8HLqUY4FD5CS8rkkFdpYjqKR
- ETH - 0x6eb9A84CE93Cd61db02302f39B824AB155b69601