why pending orders doesn't adjusted in mql4? error: the price doesnt declared. here is the mql4 code

80 Views Asked by At

/here i saved my last order's open price at op parameter./

double op = OrderOpenPrice();

int ticket = SendOrder(_symbol,OP_SELLSTOP,0.02,op -0.0020,100, 0,0);

1

There are 1 best solutions below

0
On BEST ANSWER

If you are trying to change existing orders you should be using OrderSelect() and OrderModify().