Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
syntax:deribit [2021/01/16 14:36]
profitview
syntax:deribit [2021/03/11 10:23]
profitview
Line 16: Line 16:
  
 # Optionally ignore this alert if ANY position is already open # Optionally ignore this alert if ANY position is already open
-#check=position ​iffound=abort+#check=pos iffound=abort
  
 # Close open positions on the opposite side at market # Close open positions on the opposite side at market
 # ..if no matching position is found, skip the delay and jump to main order # ..if no matching position is found, skip the delay and jump to main order
-close=position ​side=[!side] type=market ifnone=main+close=pos side=[!side] type=market ifnone=main
 # Give closing order time to execute # Give closing order time to execute
 delay=5 delay=5
Line 38: Line 38:
 # expect 1        : Expect to place an order (needed in case main order takes longer to fill) # 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 # error closeside : If we cannot place SL, cancel orders, close position & abort
-close=position ​side=[side] stoploss=[-]YOUR_STOP_LOSS% type=market expect=1 error=closeside retries=10 id=SL ~~codedoc:​clean:#​notify=discord:"​`SL at   \z` {stop_price}"​~~+close=pos side=[side] stoploss=[-]YOUR_STOP_LOSS% type=market expect=1 error=closeside retries=10 id=SL ~~codedoc:​clean:#​notify=discord:"​`SL at   \z` {stop_price}"​~~
  
 # Add limit take profit (reduce/​close only) order # Add limit take profit (reduce/​close only) order
-close=position ​side=[side] price=[+]YOUR_TAKE_PROFIT% expect=1 error=closeside retries=10 id=TP ~~codedoc:​clean:#​notify=discord:"​`TP at   \z` {price}"​~~+close=pos side=[side] price=[+]YOUR_TAKE_PROFIT% expect=1 error=closeside retries=10 id=TP ~~codedoc:​clean:#​notify=discord:"​`TP at   \z` {price}"​~~
 </​codedoc>​ </​codedoc>​
 ''​Quantity,​ leverage, stoploss and takeprofit have to be adjusted to your strategy / personal needs!''​ ''​Quantity,​ leverage, stoploss and takeprofit have to be adjusted to your strategy / personal needs!''​