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
Previous revision
syntax:simplefx [2021/04/23 17:05]
profitview
syntax:simplefx [2023/04/07 13:53]
profitview
Line 16: Line 16:
  
 # Uncomment this to skip entry if ANY position is already open # Uncomment this to skip entry if ANY position is already open
-#check=pos iffound=abort+#ifpos=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=pos side=[!side] type=market ifnone=main+close=[!side] type=market ifnone=main
 # Give closing order time to execute # Give closing order time to execute
-delay=5+delay=2s
  
 # Place main position order at market # Place main position order at market
Line 28: Line 28:
 # retries=3 ​  : Give up after 3 retries in case of overload # retries=3 ​  : Give up after 3 retries in case of overload
 :main :main
-cancel=order ​# cancel any open order/stop first +cancel # cancel any open order/stop first 
-side=[side] ​quantity=YOUR_BUY_IN% stoploss=[-]YOUR_STOP_LOSS% takeprofit=[+]YOUR_TAKE_PROFIT% type=market error=abort retries=3 ~~codedoc:​clean:#​notify=discord:​1~~+[side]=YOUR_BUY_IN% stoploss=[-]YOUR_STOP_LOSS% takeprofit=[+]YOUR_TAKE_PROFIT% type=market error=abort retries=3 ~~codedoc:​clean:#​notify=discord:​1~~
 </​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!''​