fxDreema

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

    Problem with zero divide in MM

    Questions & Answers
    3
    4
    938
    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.
    • C
      CaesarCrypto last edited by

      Hi all,

      My EA gives the error below:
      0_1572819446613_9f034e08-fd51-48ec-bb62-81005656c4cf-image.png

      I already read some threads handling this problem but I can't find a solution for my settings:
      0_1572819500691_53ffc52a-306e-42d6-a68f-5e53f9b375ad-image.png

      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

      1 Reply Last reply Reply Quote 0
      • Fabien S
        Fabien S last edited by Fabien S

        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

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

          @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?

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

          1 Reply Last reply Reply Quote 0
          • C
            CaesarCrypto last edited by

            @trader-philipps DiDi.mq4 is my EA. The suggestion from @Fabien-S worked, thanks a lot!

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

            Online Users

            Q
            C
            T
            S
            A
            M
            R
            G
            G
            Y
            C
            S

            44
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors