Problem with zero divide in MM
-
Hi all,
My EA gives the error below:

I already read some threads handling this problem but I can't find a solution for my settings:

I read that this problem is because when SL is 0, but I can't understand how this is possible when as you can see my SL is 1.5 x ATR value. The ATR value can never be 0 imo.
Any ideas about how to solve this? This is a vital part of my system that I can't change.
All help is much appreciated!
Cheers
-
use custom price fraction, atr value itself is: 0.0000123 so it needs to be multiplied with 10000, Or you just use the custom price fraction
-
@CaesarCrypto It seems like the zero divide is in DiDI.mq4. Is that your EA or a custom indicator? Can you post line 6387 in DiDi.mq4?
-
@trader-philipps DiDi.mq4 is my EA. The suggestion from @Fabien-S worked, thanks a lot!