Reply

Check that Pending Orders Exist?

4 replies

JS17

Customer, bbp_participant, community, 73 replies.

Visit profile

6 years ago #113922

Would the code I have posted below correctly check that the 6 pending orders have been placed?

0

tomas262

Administrator, sq-ultimate, 678 replies.

Visit profile

6 years ago #131213

Hi,

 

yes, the condition seems to be ok but I would also add parentheses right after first AND and also at the end of your condition.

 

Why do you want to close them if they do NOT exist then?

0

JS17

Customer, bbp_participant, community, 73 replies.

Visit profile

6 years ago #131219

Tomas, thanks for the reply

 

I want to close all of the trades, if one of them does not exist.

 

The EA places 6 trades and sometimes (don’t know why) one trade will be missing so I delete them all and let the EA start again

 

I have added the parentheses in the file below, is this correct?

 

?

0

tomas262

Administrator, sq-ultimate, 678 replies.

Visit profile

6 years ago #131233

Just move opening parenthesis one line higher right after ‘and‘ and then it’s correct. This way you check if one of the conditions is not true (order does not exist)

0

JS17

Customer, bbp_participant, community, 73 replies.

Visit profile

6 years ago #131239

thankyou again

0

Viewing 5 posts - 1 through 5 (of 5 total)