fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    Zero Divide Error

    Bug Reports
    2
    4
    1218
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      nasrull1990 last edited by

      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?

      N 1 Reply Last reply Reply Quote 0
      • N
        nasrull1990 @nasrull1990 last edited by

        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?

        1 Reply Last reply Reply Quote 0
        • L
          leander last edited by

          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

          1 Reply Last reply Reply Quote 0
          • L
            leander last edited by

            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

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post

            Online Users

            E
            M
            J
            M
            R
            S
            O

            11
            Online

            146.9k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors