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

fxDreema

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

Zero divide error and risk % of balance (Volume size depending on Stop-Loss)

Questions & Answers
5
7
2.1k
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.
  • Abade69
    Abade69 last edited by 22 Jul 2017, 21:02

    I am getting these:

    0_1500760660207_upload-65367fd7-80a4-43b1-b41a-e9848086eb08

    The weird part is it only happens just in some of the tests, and seems to be related to the risk % of balance (Volume size depending on Stop-Loss) option:

    0_1500760837075_upload-c3109307-315b-42ea-a259-6c7d258fb5b1

    But i still don't understand, here is a share of the EA:

    [shared/lIjGNfdRc](link url)

    1 Reply Last reply Reply Quote 0
    • roar
      roar last edited by 23 Jul 2017, 09:29

      It seems the EA fails to create SL in some cases - when SL is 0, error errror

      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
      • Abade69
        Abade69 last edited by 24 Jul 2017, 21:27

        Yeah, but why zero?, the SL is calculated using ATR multiplier so i don't see how it may return a 0, the only problem i have seen myself is that sometimes the formula for volume size tries to return a value less than 0.01 lots.

        1 Reply Last reply Reply Quote 0
        • fxDreema
          fxDreema last edited by 25 Jul 2017, 20:22

          I'm of course aware of this error, but the problem is always in the SL size. Why it is 0, this is the question? (the link above doesn't work)

          Abade69 1 Reply Last reply 26 Jul 2017, 01:07 Reply Quote 0
          • Abade69
            Abade69 @fxDreema last edited by 26 Jul 2017, 01:07

            @fxDreema

            Here it is:

            https://fxdreema.com/shared/Wi6Slhlge

            I think this happens when the formula tries to return a value that is less than 0.01, but not sure.

            1 Reply Last reply Reply Quote 0
            • tcanuto
              tcanuto last edited by 26 Jul 2017, 19:03

              I hope one day this problem will be solved in the block code.

              1 Reply Last reply Reply Quote 0
              • MMBInvest
                MMBInvest last edited by 20 Jan 2024, 17:40

                For those who still have the issue - there is something I realized: As this app runs in the cloud, sometime there might be hickups... like the connection is not stable enough and so on... this could lead to issues whilst the creation of some blocks. I had the same zero-divide issue and therefore I re-created the buy and sell blocks, afterwards they worked as supposed. of course the SL cannot be 0, but I was looking for the lowest or highes candle of 10 after an EMA cross, hence I knew that the SL was never 0. It could also have been an issue with the highest/lowest function, that provided maybe a 0 as SL - but this function was also part of the buy / sell block. So again, I deleted them and re-created them, and all of a sudded the EA worked as supposed - no zero-divide anymore. No functionallity was changed... sometimes that happens - was not the first time that it took me hours to find an issues and the last solutions was to re-create the block, just to find that it could have worked just fine. I blame it on the connections losses that appear sometimes and I make mayself aware of the blocks that I was creating during that time. ... maybe that solves your issues as well.

                1 Reply Last reply Reply Quote 1
                • 1 / 1
                1 out of 7
                • First post
                  1/7
                  Last post

                Online Users

                A
                S
                N
                D
                E
                W
                S
                J
                Q
                Y
                M
                6
                S
                K
                E
                J
                K
                T
                O
                D
                I
                P

                42
                Online

                128.2k
                Users

                21.8k
                Topics

                119.2k
                Posts

                Powered by NodeBB Forums | Contributors