Username: Password:

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Larz

Pages: [1]
1
last night Gunbot (12.9.9.2) closed a 10x leverage XBTUSD position on BitMex Testnet at a slight loss for no apparent reason (saying ROE reached, which was not the case).

Code: [Select]
[32m************************************************************************************************

BEGIN ROE TRAILING LOGS FOR LONG POSITION

************************************************************************************************

------------------------------------------------------------------------------------------------

2019/05/21 02:46:30: ROE TrailingBuy limit 1.98

------------------------------------------------------------------------------------------------

2019/05/21 02:46:30: Actual ROE         -0.44   |  ROE Target:   1.98

------------------------------------------------------------------------------------------------

2019/05/21 02:46:30: ROE Stop limit     2.02

------------------------------------------------------------------------------------------------

ROE raising up: activating Stop limit!!!

GBRT_v12.9.9.2 XBT-USD@bitmex_testnet Round #172 2019/05/21 02:46:30
from 10592
************************************************************************************************
Closing position, ROE reached!!!
************************************************************************************************
About to close position

2019/05/21 02:46:30: Closing position...

afterwards it bought straight back in - this all was immediately before a flash crash on BitMex Testnet where XBTUSD went from ~8000 down to 6500, up to 9000 and back to ~8000 (I guess someone was practising market manipulation...), so minutes later the new position got liquidated at 7500.

So I'm wondering

1) Why would Gunbot have closed the position at a 0.44% (leveraged 4.4%) loss to begin with?
2) Has any of this to do with the flash crash? (i.e. would the indicators have predicted the crash, suggesting to get out, which would be great, but then why would the bot buy back in immediately after?)

2
General Discussion / use stop loss for leveraged trading on BitMex?
« on: May 19, 2019, 10:56:51 AM »
I'm currently running gunbot  on BitMex Testnet (recently upgraded to 12.9.9.2, which my reseller sent me as it fixes a bitmex_testnet bug) to fine tune a margin strategy before I point the bot at BitMex proper.

The one thing I'm not sure about is whether it's better to leave gunbot to decide when to sell at a loss or to set a stop loss using STOP BUY ORDER and STOP SELL ORDER in the margin settings.
The latter would protect against a situation where the bot is for some reason offline during a spike and might save the position from liquidation, but the bot strategy (provided it's online) might make the better decision based on indicators?

what do you think and how do you set up your margin strategies?

Pages: [1]