fxDreema

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

    Global Variable

    Questions & Answers
    3
    4
    236
    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
      Safeer992 last edited by

      Good day Experts

      I am working to save variable into PC so that if any crash or update happens, EA recognize last variables
      Can anyone help as it is still making variable to ZERO (0) after Mt4 reopening

      https://fxdreema.com/shared/bsmQeaxde

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

        You have the right idea, save and read from a terminal(global) variable

        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
        • S
          Safeer992 last edited by

          Hello @jstap
          Good day

          Thanks for your reply.
          But EA is not saving data in global terminal. EA is resetting date as soon as I change the chart or restart the terminal.
          I want to save +1 in global variable if last trade was not in profit.

          https://fxdreema.com/shared/bsmQeaxde

          S 1 Reply Last reply Reply Quote 0
          • S
            sssddd @Safeer992 last edited by

            @Safeer992 try doing it on DEINIT or write the variables into a text object with no colour and then it should save when it crashes into the text object.

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

            Online Users

            G
            Y
            C
            S
            S
            S
            A

            28
            Online

            146.7k
            Users

            22.4k
            Topics

            122.6k
            Posts

            Powered by NodeBB Forums | Contributors