09-05-2018, 11:58 PM
Thank you for adding a native stop-loss, I've been using a helper file to add a stop-loss before this and it worked but this is much cleaner and with this I can access bid/ask data Now that it is trailing profit I'm trying to get it to trail down aka if the EMA cross's over or RSI signals a buy start trailing the bid price down by a percent once the bid price starts moving up go long and set a stop-loss on profit. So far I've copied and renamed trailingStop.js to trailingStopDown.js and reversed the logic on line 27 and 33. But i'm having a hard time getting it to trigger without a long advice signal. If the logic of what I'm trying to do makes sense is it possible to trail the price down on a indicator signal then buy when the bid price goes back up?