### Kraken Futures Long/Short ### # Uncomment this to set exchange & symbol (if different from your chart/alert!) #exchange=krakenft symbol=pi_xbtusd # Uncomment this for multi accounts (and fill in your accounts) #parallel=acc1,acc2,acc3 # Uncomment this to skip entry if ANY position is already open #check=pos iffound=abort # Close open positions on the opposite side at market # ..if no matching position is found, skip the delay and jump to main order close=pos side=[!side] type=market ifnone=main # Give closing order time to execute delay=3 # Place main position order at market # error abort : Abort/skip rest on error (after retries) # retries 3 : Give up after 3 retries in case of overload :main cancel=order # cancel any open order/stop first side=[side] quantity=YOUR_BUY_IN% leverage=YOUR_LEVERAGE type=market error=abort retries=3 #notify=discord:1 # Give main order time to execute delay=3 # Add market stop loss order # expect 1 : Expect to place an order (needed in case main order takes longer to fill) # error closeside : If we cannot place SL, cancel orders, close position & abort close=pos side=[side] stoploss=[-]YOUR_STOP_LOSS% type=market expect=1 error=closeside retries=10 id=SL #notify=discord:"`SL at \z` {stop}" # Add limit take profit (reduce/close only) order close=pos side=[side] price=[+]YOUR_TAKE_PROFIT% priceref=pos expect=1 error=closeside retries=10 id=TP #notify=discord:"`TP at \z` {price}"
YOUR_BUY_IN (Quantity), YOUR_LEVERAGE (Leverage), YOUR_STOP_LOSS (Stop Loss) and YOUR_TAKE_PROFIT (Take Profit) have to be replaced with your actual values!
Always double check that you are using the right syntax/alert!