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/05/12 05:35] profitview |
syntax:bitmex [2021/01/16 14:34] profitview |
||
---|---|---|---|
Line 35: | Line 35: | ||
# Add market stop loss order | # Add market stop loss order | ||
- | # return 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 return=1 error=closeside retries=10 id=SL ~~codedoc:clean:#notify=discord:"`SL at \z` {stoppx}"~~ | + | 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` {stoppx}"~~ |
- | # Add limit take profit order | + | # Add limit take profit (reduce/close only) order |
- | # (see above for other parameters) | + | close=position side=[side] takeprofit=0% price=[+]YOUR_TAKE_PROFIT% expect=1 error=closeside retries=10 id=TP ~~codedoc:clean:#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!'' |