why my mq5 ea appear "not all control paths return a value "?

 

why?

 

Why? Because "not all paths return a value!!!"

Do you really expect a better answer? There are no mind readers here and our crystal balls are cracked. Always post all relevant code (using Code button) or attach the file.
     How To Ask Questions The Smart Way. (2004)
          Be precise and informative about your problem

We can't see your broken code.

 

I suspect you have something like:

if(A == true)
   {
    break;
   }
if(B == 5)
   {
    return 5;
   }

In the A section there is not a return.