Check if Buy Order Exist ?

 

Hi,


Example, I want check if Buy order exist and Close condition is true, it will send order to close the Buy, and vice versa.


Problem i have: Without Checking order exist, and if My close condition is true. and there was no order, it send a new trade base on close condition..


Please help..


Thanks.

 
yster:

Hi,


Example, I want check if Buy order exist and Close condition is true, it will send order to close the Buy, and vice versa.


Problem i have: Without Checking order exist, and if My close condition is true. and there was no order, it send a new trade base on close condition..


Please help..


Thanks.





I'm having real trouble deciphering your question.

Are you saying that your EA tried to close an order which didn't exist?

If so, please post your code and we'll tell you why.


CB

Reason: