Thanks Big Be for your help but I just realized that my old code
does work but I have to enable the use of a StopLoss for SELL orders to get modified..
Wierd, that I don't need to enable a TakeProfit for MoveStopOnce to work with a BUY order but I have to enable a StopLoss for MoveStopOnce to modify the SELL order.
Oh, well, I'll have to look at the code a little deeper to figure that one out unless you know why.
EDIT: if you change to;
Code:
if(0 < OrderOpenPrice() - Point * MoveStopTo) {
instead of;
Code:
if(OrderStopLoss() < OrderOpenPrice() - Point * MoveStopTo) {
Seems to work good.
Thanks