Why is the close order not executing

 

Hi All,

OrderClose(132443329,3,Bid,3,Red);

Could someone please tell me what I am doing wrong.

according to the documentation this line above should close the order, but nothing happens, if I do it manualy then their is no problem!

Thanks in advance

Crunchy

 

hi, this closes only the order if, OrderTicket() is 132443329, and the type of order is Short.

as you don't provide any source code, i can't give you more informations...

 

If he's closing at the Bid, it had better be a Long...

Slippage is a bit tight if this is a sub-pip account...

As ever, what does the error say in the Experts or Journal tab...?

-BB-

 
BarrowBoy:

If he's closing at the Bid, it had better be a Long...

-BB-

always mixing them..
Reason: