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