zero divide error MT5
-
Error comes from this line every time. Any ideas or work arounds?
return CustomPoint(symbol) / SymbolInfoDouble(symbol, SYMBOL_POINT);
-
This is a question for real programmers. Anyone here?

-
workaround:
add this to line 569:
if (SymbolInfoDouble(symbol, SYMBOL_POINT) == 0) { return (CustomPoint(symbol) / xxx); }
where xxx is 0.00001 or 0.001 ... or any (depends on symbol) -
Lukily I had an older version I was working on before I moved to this version that don't have this issue. Thanks to both of you.