fxDreema

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

    LotStep causing zero divide.

    Questions & Answers
    3
    6
    580
    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.
    • M
      Mantadiver last edited by

      Hello,

      I had a similar issue 3 years ago but unable to solve on a new EA.

      If EA has a live trade and MT4 restarts for whatever reason it throws a Zero Divide due to "LotStep" being set to "0" on restart.

      a) It doesn't happen if there is no trade.
      b) Manual solution is to add "if(LotStep == 0) LotStep = 0.01;" within the "AlignLots" function manually.

      Question: Any ideas why this is happening and is there a way for me to add a custom block to insert the fix automatically or would it be possible for FXDreema to add this line into the system code please ?

      Many thanks

      MantaDiver

      l'andorrà 1 Reply Last reply Reply Quote 0
      • l'andorrà
        l'andorrà @Mantadiver last edited by

        @mantadiver I'm afraid I'm not a programmer, so I can't help. But I'm curious to understand how that can happen. What calculations are required for a Zero Divide result like that if no open trades are active right now?

        (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

        (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

        (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

        1 Reply Last reply Reply Quote 0
        • M
          Mantadiver last edited by

          Indeed, I too would like to understand how it can happen because it is a system function and seemingly not something I have done (although happy to be corrected on that).

          I have tried remming out the code "do or do not initialize on reload" in case that helps but it didn't.

          The LotStep is defined in the area "System & Custom Functions used in the program", but I cannot tell if it is only activated on startup or on an as needed basis.

          It would be a simple fix for fxdrema to insert a catch all to avoid a zero divide. Does fxdrema still frequent the forum or maybe miro ?

          Many thanks

          l'andorrà 1 Reply Last reply Reply Quote 0
          • l'andorrà
            l'andorrà @Mantadiver last edited by

            @mantadiver Sadly the admin does never participate on any forums. However, he reads the bugs forum to see any issue in the platform. I recommend you to open a thread there and at the same time contact him directly to let him know.

            Miro is deeply missed too. I don't even know if he's a user anymore. 😞

            (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

            (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

            (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

            1 Reply Last reply Reply Quote 0
            • M
              Mantadiver last edited by

              Thanks l'andorra, for such a superb product (and I've tried most of them) it is a little strange that there appears to be a distancing going on.

              I guess as long as the server stays up we're all happy.

              Thanks for the suggestion, I'll give that a go.

              jstap 1 Reply Last reply Reply Quote 0
              • jstap
                jstap @Mantadiver last edited by

                @mantadiver Answered this in your other post.

                Learn fxDreema Without the Wait!

                My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

                The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

                Don’t miss out

                Click here➡️ https://mybook.to/fxDreema to get your copy today!

                Enjoy! 😊

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

                Online Users

                V
                O
                J
                B

                27
                Online

                146.7k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors