Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
syntax:bitmex [2020/04/24 09:15] profitview |
syntax:bitmex [2020/04/24 10:12] profitview ↷ Page moved from bitmex-syntax to syntax-setup:bitmex-syntax |
||
---|---|---|---|
Line 27: | Line 27: | ||
# retries 3 : Give up after 3 retries in case of overload | # retries 3 : Give up after 3 retries in case of overload | ||
:main | :main | ||
- | side=[side] quantity=YOUR_BUY_IN% leverage=YOUR_LEVERAGE type=market error=abort retries=3 notify=discord:1 | + | side=[side] quantity=YOUR_BUY_IN% leverage=YOUR_LEVERAGE type=market error=abort retries=3 ~~codedoc:clean:#notify=discord:1~~ |
# Give main order time to execute | # Give main order time to execute | ||
Line 35: | Line 35: | ||
# return 1 : Expect to place an order (needed in case main order takes longer to fill) | # return 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 return=1 error=closeside retries=10 id=SL notify=discord:"`SL at \z` {stoppx}" | + | close=position side=[side] stoploss=[-]YOUR_STOP_LOSS% type=market return=1 error=closeside retries=10 id=SL ~~codedoc:clean:#notify=discord:"`SL at \z` {stoppx}"~~ |
# Add limit take profit order | # Add limit take profit order | ||
# (see above for other parameters) | # (see above for other parameters) | ||
- | close=position side=[side] takeprofit=0% price=[+]YOUR_TAKE_PROFIT% return=1 error=closeside retries=10 id=TP notify=discord:"`TP at \z` {price}" | + | close=position side=[side] takeprofit=0% price=[+]YOUR_TAKE_PROFIT% return=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!'' |