Differences

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

Link to this comparison view

Next revision
Previous revision
syntax-setup [2018/11/28 14:48]
profitview created
syntax-setup [2019/04/06 22:12] (current)
profitview
Line 15: Line 15:
 <​accordion>​ <​accordion>​
 <panel title="​Long/​Buy Signal"​ icon="​fa fa-bar-chart">​ <panel title="​Long/​Buy Signal"​ icon="​fa fa-bar-chart">​
-<file># LONG XBTUSD+<sxh cpp> 
 +### BitMEX Long ### 
 + 
 +# Cancel open orders
 c=order t=open c=order t=open
-c=position b=short t=market +# Close open short positions at market 
-c=position b=short t=market +# ..if no matching position is found, skip the next command (the delay) 
-delay=+c=position b=short t=market ​ret=-1 err=1 
-b=long l=25 q=50% t=market ​err=-1+# Give closing order time to execute
 delay=5 delay=5
-b=long c=position q=300% sl=-2.5% t=market ​r=1 ret=1 err=-2 + 
-b=long c=position q=300% tp=0% p=1.3r=1 ret=1 err=-2 +# Open market long (main position order) 
-</file>+# err=-1 ​   : Abort/skip rest on error (after retries) 
 +# retries=3 : Give up after 3 retries in case of overload 
 +b=long q=[BUY IN]% l=[LEVERAGE] t=market err=-1 retries=3 
 + 
 +# Give main order time to execute 
 +delay=3 
 + 
 +# Add market stop loss order 
 +# ret=1  : Expect to place an order.. 
 +# err=-2 : Otherwise retry, afterwards close all positions & abort 
 +# (bigger q accounts for position increase due to layered buy ins) 
 +b=long c=position q=300% sl=-[STOP LOSS]% t=market ​ret=1 err=-2 
 + 
 +# Add limit take profit order 
 +ret=1  : Expect to place an order.. 
 +err=-2 ​: Otherwise retry, afterwards close all positions & abort 
 +# (bigger q accounts for position increase due to layered buy ins) 
 +b=long c=position q=300% tp=0% p=[TAKE PROFIT]% ret=1 err=-2 
 +</sxh>
 ''​q= l= sl= p= needs to be adjusted to your needs''​ ''​q= l= sl= p= needs to be adjusted to your needs''​
 ---- ----
Line 42: Line 63:
  
 <panel title="​Short/​Sell Signal"​ icon="​fa fa-bar-chart">​ <panel title="​Short/​Sell Signal"​ icon="​fa fa-bar-chart">​
-<file># SHORT XBTUSD+<sxh cpp> 
 +### BitMEX Short ### 
 + 
 +# Cancel open orders
 c=order t=open c=order t=open
-c=position b=long t=market +# Close open long positions at market 
-c=position b=long t=market +# ..if no matching position is found, skip the next command (the delay) 
-delay=+c=position b=long t=market ​ret=-1 err=1 
-b=short l=25 q=50% t=market ​err=-1+# Give closing order time to execute
 delay=5 delay=5
-b=short c=position q=300% sl=2.5% t=market ​r=1 ret=1 err=-2 + 
-b=short c=position q=300% tp=0% p=-1.3r=1 ret=1 err=-2 +# Open market short (main position order) 
-</file>+# err=-1 ​   : Abort/skip rest on error (after retries) 
 +# retries=3 : Give up after 3 retries in case of overload 
 +b=short q=[BUY IN]% l=[LEVERAGE] t=market err=-1 retries=3 
 + 
 +# Give main order time to execute 
 +delay=3 
 + 
 +# Add market stop loss order 
 +# ret=1  : Expect to place an order.. 
 +# err=-2 : Otherwise retry, afterwards close all positions & abort 
 +# (bigger q accounts for position increase due to layered buy ins) 
 +b=short c=position q=300% sl=[STOP LOSS]% t=market ​ret=1 err=-2 
 + 
 +# Add limit take profit order 
 +ret=1  : Expect to place an order.. 
 +err=-2 ​: Otherwise retry, afterwards close all positions & abort 
 +# (bigger q accounts for position increase due to layered buy ins) 
 +b=short c=position q=300% tp=0% p=-[TAKE PROFIT]% ret=1 err=-2 
 +</sxh>
 ''​q= l= sl= p= needs to be adjusted to your needs''​ ''​q= l= sl= p= needs to be adjusted to your needs''​
 ---- ----