fxDreema

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

    What does the EA remember when restarting MT4/5?

    Questions & Answers
    2
    7
    265
    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.
    • Boillot84
      Boillot84 last edited by

      Hello everybody!

      Please someone to assist me.

      I need to know which blocks will remember their data when I restart the platform (MT4 MT5)

      I know it wont remember the variables, but I don't know if some of the blocks it will, for example the followings:

      • Every "n" bars

      • Check consecutive losses

      • Set Flag (numeric) (true-false) or (textual)

      • Counter: pass "n" times

      • Counter: Count "n", then pass

      Thank you in advance


      Hola a todos!

      Por favor, alguien que me ayude.

      Necesito saber qué bloques recordarán sus datos cuando reinicie la plataforma (MT4 MT5)

      Sé que no recordará las variables, pero no sé si algunos de los bloques lo harán, por ejemplo los siguientes:

      • Every "n" bars

      • Check consecutive losses

      • Set Flag (numeric) (true-false) or (textual)

      • Counter: pass "n" times

      • Counter: Count "n", then pass

      Gracias de antemano

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

        None will, blocks that do the calculation there and then don't need to, other than that only something that saves data to a global (terminal) variable can remember.

        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 1
        • Boillot84
          Boillot84 last edited by

          Thank you very much @jstap

          1 Reply Last reply Reply Quote 0
          • Boillot84
            Boillot84 last edited by Boillot84

            Another way to the EA remember for example a price level even if I restart MT4 could be draw a line in the chart and use this line, I guess should work, just to be carefull to do not delete or move the draw or create one non-erasable.

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

              Or just draw the line in your EA before using, generally using the price rather than a visible object makes more sense, but these will be deleted when closing terminal/removing EA from chart, so a global variable would need to be used, you could then use this price to draw the line.

              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! 😊

              Boillot84 1 Reply Last reply Reply Quote 1
              • Boillot84
                Boillot84 @jstap last edited by

                @jstap Ok, thank you, I will do everything with global variables to be safe. I didn't know draws will be removed.

                My problem is that I need to restart the VPS almost once a week do to updates, and some trades still open and I need to keep few variables the same, distance, number of losing trades and so on. I know how to do it thanks to your post, but I couldn't yet, (I'm on it).

                And all my EA's are working with te block "Check consecutive losses" that I need to modify knowing this.

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

                  They are not always removed, but at times I have restarted computer, loaded MT and line's etc have been missing.

                  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 1
                  • 1 / 1
                  • First post
                    Last post

                  Online Users

                  S
                  G
                  B
                  F
                  K
                  N

                  14
                  Online

                  146.6k
                  Users

                  22.4k
                  Topics

                  122.6k
                  Posts

                  Powered by NodeBB Forums | Contributors