pls urgent help

 
pls i would like someone to look into the code of the attached EA i want the EA to be closing market if the  last condition is  met but unfortunately for me it is not so when i complied it, i got warning "Function "CheckForClose" is not referenced and will be removed from exp-file. I dont know how to solve the problem. 

"
Files:
ea.mq4  7 kb
 

Your not calling CheckForClose anywhere in the code, you have to call the function when you'd like to check your close orders, that is the reason for your warning and also the reason that your orders aren't closing. You need to put in checkforclose(); wherever you want in the start function.

BB

Reason: