Proper stop losses coming soon
#36
Quote:Are we able to make volatility-based stop losses? Like an ATR stop loss?

Right now you have to script them yourself into your strategy. Gekko won't calculate them for you but you can easily calculate them inside your strategy.

Quote:I tried to console.log trade within the onTrade event in my strategy on both sell and buy condition, but I couldn't see any trigger key in that object. This is what's happening at least in papermode test, not with actual trading. I'm wondering if there is an event or a way to check if the native stopLoss has been triggered so that I can send a message to slack or telegram.

These keys are indeed not part the tradeCompleted event (paper trader nor live trader), all the properties are listed here: https://gekko.wizb.it/docs/internals/eve...eted-event

For now: you check the event, if you get a sell with the same `adviceId` you previously received a buy from you know it's a trade from the same advice. And a stoploss is the only possible reason for this. I might add a key like the one from @mark.sch to the event to make this more clear Smile
  Reply


Messages In This Thread
Proper stop losses coming soon - by askmike - 07-07-2018, 07:27 AM
RE: Proper stop losses coming soon - by TCMabe - 07-11-2018, 08:38 PM
RE: Proper stop losses coming soon - by askmike - 07-12-2018, 04:23 AM
RE: Proper stop losses coming soon - by mark.sch - 07-12-2018, 04:41 PM
RE: Proper stop losses coming soon - by askmike - 07-13-2018, 01:36 AM
RE: Proper stop losses coming soon - by mark.sch - 07-13-2018, 09:53 AM
RE: Proper stop losses coming soon - by askmike - 07-13-2018, 12:50 PM
RE: Proper stop losses coming soon - by Kris191 - 07-30-2018, 03:37 PM
RE: Proper stop losses coming soon - by askmike - 07-31-2018, 12:56 PM
RE: Proper stop losses coming soon - by askmike - 08-11-2018, 07:32 AM
RE: Proper stop losses coming soon - by PapoKarlo - 08-12-2018, 10:12 AM
RE: Proper stop losses coming soon - by mark.sch - 08-12-2018, 11:50 AM
RE: Proper stop losses coming soon - by askmike - 08-12-2018, 02:35 PM
RE: Proper stop losses coming soon - by askmike - 08-14-2018, 04:06 AM
RE: Proper stop losses coming soon - by PapoKarlo - 08-14-2018, 04:42 PM
RE: Proper stop losses coming soon - by askmike - 08-14-2018, 04:47 PM
RE: Proper stop losses coming soon - by mark.sch - 08-16-2018, 09:24 AM
RE: Proper stop losses coming soon - by askmike - 08-16-2018, 04:04 PM
RE: Proper stop losses coming soon - by mark.sch - 08-17-2018, 10:26 PM
RE: Proper stop losses coming soon - by askmike - 08-27-2018, 11:49 AM
RE: Proper stop losses coming soon - by askmike - 08-27-2018, 12:27 PM
RE: Proper stop losses coming soon - by mark.sch - 09-06-2018, 11:13 PM
RE: Proper stop losses coming soon - by maxblack - 10-07-2018, 09:46 AM
RE: Proper stop losses coming soon - by mark.sch - 09-03-2018, 12:20 AM
RE: Proper stop losses coming soon - by askmike - 09-03-2018, 04:58 AM
RE: Proper stop losses coming soon - by mark.sch - 09-04-2018, 01:11 PM
RE: Proper stop losses coming soon - by BotsEdge - 09-09-2018, 11:25 PM
RE: Proper stop losses coming soon - by askmike - 09-06-2018, 05:14 AM
RE: Proper stop losses coming soon - by bitsnpcs - 09-11-2018, 11:55 PM
RE: Proper stop losses coming soon - by Presunto - 09-27-2018, 12:43 PM
RE: Proper stop losses coming soon - by askmike - 09-28-2018, 04:16 AM
RE: Proper stop losses coming soon - by askmike - 10-20-2018, 06:14 AM
RE: Proper stop losses coming soon - by askmike - 10-22-2018, 04:26 AM
RE: Proper stop losses coming soon - by askmike - 11-11-2018, 05:01 AM
RE: Proper stop losses coming soon - by askmike - 11-14-2018, 11:15 AM
RE: Proper stop losses coming soon - by askmike - 01-03-2019, 09:05 AM
RE: Proper stop losses coming soon - by askmike - 01-03-2019, 05:28 PM
RE: Proper stop losses coming soon - by hitripley - 01-18-2019, 02:46 PM
RE: Proper stop losses coming soon - by hitripley - 01-18-2019, 03:18 PM

Forum Jump:


Users browsing this thread: