fxDreema

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

    What is causing this error?

    Questions & Answers
    3
    4
    563
    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.
    • S
      SpecialFX last edited by

      0_1567954723293_6cfbc604-2c40-4649-8b2e-282e266d374f-image.png

      Happens on multiple currencies - is one of my indicators incorrectly configured?

      roar T 2 Replies Last reply Reply Quote 0
      • roar
        roar @SpecialFX last edited by

        @specialfx Yes, that's a logical error in some function. Check that line 6099 from your .mq4 code.

        Need small help? Tag me in your post
        Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

        1 Reply Last reply Reply Quote 0
        • T
          trader.philipps @SpecialFX last edited by

          @specialfx That's usually the case if you do a division especially with variables and the divisor (is that called like this in English?) is zero. This is not defined in mathematics and hence an error.
          example:

          //
          double dont_do_that = 0;
          double result = 12345 / dont_do_that;
          //

          You can avoid it by testing if in this case "dont-do-that" variable is not zero.

          For your EA that means, that it stops working from that point on after the error message.

          I like to share my knowledge, but expect the others to contribute as well.

          S 1 Reply Last reply Reply Quote 0
          • S
            SpecialFX @trader.philipps last edited by

            @trader-philipps That's pretty irritating, kinda of messes up indicators which revolve a zero-line cross doesn't it?

            In this case however I checked the line of code as roar suggested and apparently this error was caused by me risking an invalid % of equity in buy / sell orders

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

            Online Users

            P
            C
            J
            V
            G
            E
            H
            C
            D

            19
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors