Fault code - zero divide in '8320-5947.mq4' (12065,31)

 
Can anyone help to resolve this  is there a place where you can check the fault codes?
 
Sergei Kotcherov:
Can anyone help to resolve this  is there a place where you can check the fault codes?

https://www.mql5.com/en/forum/384995

How to solve zero divide error in my code?
How to solve zero divide error in my code?
  • 2021.12.26
  • www.mql5.com
Hello guys, I am running into a zero divide error because my formula is based on the percentage change from the lowest/highest the last x bars and...
 

Always check for not dividing by zero.

Best and shortest way of coding every time you do a division:

val = dividend!=0 ? num/dividend : 0;
Reason: