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

Forex5xx  

I suspect you have something like:

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

In the A section there is not a return.

Reason: