1. The script opens a buy order with stoploss 201 points away from the price: 2019-03-11 04:00:11.035 - brokerBuy2: asset=USA30.IDX/USD, amount=3, stop=201.62, limit=0.0 2019-03-11 04:00:11.068 - brokerBuy2: tradeID=168186933, type=BUY, order=[DukascopyPlugin1552273211035]-FILLED / USA30.IDX/USD / 25401.03 where open price is 25401.03 and stoploss sell is at 25401.03-201.62=25199.41
2. The script moves the stoploss to 25351.25: 2019-03-11 05:00:07.232 - brokerStop: tradeID=168186933, stop=25351.25
3. The stoploss is triggered and the order is closed by the broker: 2019-03-11 09:00:52.691 - Strategy.onMessage: Message Type: NOTIFICATION; Text: ORDER_FILLED-Order FILLED at 25350.569 (#646676240 STOP LOSS SELL 3 USA30.IDX/USD @ MKT IF BID <= 25351.25 EXPIRES: GTC) - Position #168186933; Related Order: [DukascopyPlugin1552273211035]-FILLED / USA30.IDX/USD / 25401.03 / 3.0E-6 / 3.0E-6
4. The script is trying to close the order but it doesn't exist anymore: 2019-03-11 09:00:59.428 - brokerSell: tradeID=168186933, amount=3 brokerSell: Order not found for tradeID=168186933