Code assistance

 
Hi All anyone here able to assist ne with my code, i cannot get it to action trades and its either only looking for sell trades or buy trades - I am still new to coding so any guidance would be appreciated :


Files:
BLNK2.txt  67 kb
 
send it back to AI and ask why it does not work, it might help.

You might want to try this:
//#include <Errors/Errors.mqh> // Include the Errors header for ErrorDescription
void LogError(string msg)
{
   Print("Error: ", msg);
}

good luck