Zero Divide Error
-
Hello,
May i know why this happen normally? I tried run on demo account but this error is not occur. This zero divide error occur when i run it on live account. Can anyone help?
-
I have check the line error. It happen at this line
else if (mode=="block-balance") {size=(value/100)*AccountBalance()/margin_required;}
Is this because i not put SL value? I use Freeze of balance, do i need to put SL value?
-
I have almost the same problem. In a demo account things work fine, once I use a live account to backtest - zero divide error in the money management
-
Quick update: I’ve found miros’ fix and after doing this I got another error instead: tester cannot calculate price;
Turns out the plem was because my live accoubt uses cad but the tester only works using usd -> fix in ther tester options switching to the main currency of your broker, USD, found the info here: https://www.mql5.com/en/forum/154449