fxDreema

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

    Close after certain amount of money profit

    Questions & Answers
    4
    13
    1138
    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
      SirLuk last edited by

      Hi, hope someone can help with this. I would like to have my EA record the balance at 09:00 in the morning (probably in a variable?). This should happen once. Then I want my EA to check the former balance with the current equity on tick. Once that equity is let's say 40$ higher, I want all trades to close and the EA to not trade anymore.

      Anyone know how this would look like? The thing is, I don't really know how to write a variable... 😞

      Thanks in advance!

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

        Would that work? https://fxdreema.com/shared/G9jiq7bKb

        Also here a pic of the variable: 0_1648454456918_Unbenannt.PNG

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

          @sirluk You do not need a variable to do that. This is an inspitation for what you need:

          https://fxdreema.com/shared/C5DLuktD

          Yoy should substitute block 6 for a 'check profit(unrealized)' one instead. There you should select 40 as your daily target.

          (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.

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

            But this will only check the profits for that specific forex pair I'm running the EA on. I intend to run the same EA on multiple pairs...that's why I want to work with balance. I want to record the balance at the beginning of the day and once I'm up 40$ overall I want all trades to close.

            How do I write a variable to record the momentary balance?

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

              @l-andorrà Then I'll just run a condition comparing the balance of the balance in the variable recorded in the morning with the current balance adjusted by 40. I guess that will work? (See shared file)

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

                @jstap any ideas?

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

                  @sirluk This is how I do similar stuff: https://fxdreema.com/shared/aUW1EMfDb

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

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

                    @jstap will that not only check the profits on the current pair? Will it check profits running on other pairs as well, where the EA is not running?

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

                      @sirluk That depends on how you have the settings, if you change to any symbol it will do all.

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

                        Thanks for the help everybody!

                        OntradingX 1 Reply Last reply Reply Quote 0
                        • OntradingX
                          OntradingX @SirLuk last edited by

                          @sirluk @l-andorrà @jstap
                          I would like to comment on one detail...
                          All this will work in backtest, but I believe that in the real market, as soon as your metatrader restarts or your house light or vps forces the metatrader to restart the value obtained at the beginning of the day will be zero (0).
                          I think the ideal thing is for you to loop in search of the amount of gain or loss for the day and save this in a variable. Every time the EA is restarted no matter the reason it will loop and get the balance of the current day.

                          Sou do Brasil e utilizo o sistema Fxdreema a alguns anos, sempre que tenho tempo disponível eu tento ajudar alguém por aqui, mas se quiser uma ajuda mais próxima me contacte:
                          Site: https://www.ontradingx.com.br
                          Youtube: https://www.youtube.com/@ontradingx
                          Boa sorte a todos nós!

                          English - I'm from Brazil and I've been using the Fxdreema system for a few years, whenever I have time available I try to help someone here, but if you want more help, contact me:
                          Website: https://www.ontradingx.com.br
                          Youtube: https://www.youtube.com/@ontradingx
                          Good luck to all of us!

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

                            Thank you for your input. Any idea how that would look like? Maybe you could show me how? If I have the account history set to today, won't that always show correctly no matter if I close Mt4 or not?

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

                              @sirluk believe these blocks will check your brokers history, same as what your MT4/5 does to show all results:

                              0_1648572158993_85445779-6a02-4ea8-b90f-d9b1cb9b379f-image.png

                              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

                              J
                              F
                              M
                              N
                              H
                              K
                              W
                              S

                              14
                              Online

                              146.7k
                              Users

                              22.4k
                              Topics

                              122.6k
                              Posts

                              Powered by NodeBB Forums | Contributors