08:49:05 com.dukascopy.api.JFException: Order state immutable @ jforex.WODECELV.onTick(WODECELV.java:119)
what's the "Order state immutable" means???
When error message came out, then my strategy was stopped.
if(order == null){
engine.submitOrder("MyStrategyOrder",myInstrument,myCommand,0.01,MyLastTick,10,StopLossPrice,TakeProfitPrice);
}else if(order != null){
if(order.isLong()){
order.setStopLossPrice(MyWhiteDownLine);
}else{
order.setStopLossPrice(MyWhiteUpLine,OfferSide.BID); //****WODECELV.java:119****
}
}