[SOLVED] Zero division error, but how? - page 2

 
Fernando Carreiro: Don't use "==" or "!=" on doubles. Its untrustworthy.

Doubles are rarely equal. Understand the links in:
          The == operand. - MQL4 programming forum #2 2013.06.07

 

That's right I completely forgot about that doubles.

I guess I have been coding other languages too much.

I'm glad you got it sorted.

Reason: