fxDreema

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

    Limit Maximum symbols trading.

    Questions & Answers
    4
    12
    430
    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.
    • OntradingX
      OntradingX last edited by

      Friends, I'm trying to limit a max of trades per symbol.
      For example, I can put 28 currencies to trade, but if I define that I want a maximum of 3 trading, the EA should respect it and it is not respecting it.
      Can anyone see in this project where I'm getting the logic wrong?

      https://fxdreema.com/shared/DrUQrUzab

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

        @roar you can help me here ?

        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
        • l'andorrà
          l'andorrà last edited by

          The only I can see now is by crating a loop searching for every open chart separately and then checking that limit. AFAIK you will need custom code doing that.

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

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

            @l-andorrà
            I'm believing it might be a BUG for the following reason.
            Reading the Logic:

            1. Loop through all the assets being requested.
            2. Save these assets across all interactions in a variable.
            3. Check if "There is any buy or sell position" for each of the assets.
            4. Check if the Maximum Defined Symbols is lower than requested. If it is lower 1 time per bar buy or sell.

            I believe the logic is correct.
            For this reason I believe there is a BUG.

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

              @fxDreema you can help here?

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

                hi
                instead of looping through every symbol to limit the trades just loop through trades
                before opening new trade just check if The new Trade Symbol has already 3 open positions or not and then open or cancel the trade

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

                  @aliso
                  Can you give me an example of how to do this?
                  From what I understand your solution will not work, because I am working with multi-markets so I will have the 28 forex currency pairs in the key to open trades.
                  Imagine that I set the EA to allow only 3 pairs to trade, so I set the number 3 in the condition.
                  If I have for example:
                  1 EURUSD trade.
                  1 GBPUSD trade.
                  1 AUDUSD trade.
                  So if the EA tries to open +1 trade, no matter what currency it is, it will not be allowed because 3 simultaneous open trades have already been reached, even if they are different currency pairs.
                  Did you understand?

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

                    I also used this block, which I understand would make it a lot easier, but from what I've seen it's not working well either.

                    image.png

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

                      I believe I found the problem, all this has to be done in "On Trader" and not in "On Tick"

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

                        image.png
                        is correct to solve this problem, thanks for all @aliso @l-andorrà @roar

                        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!

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

                          @OntradingX your original example has a working checkup with the increasing variable, you are just not checking all symbols at once.

                          This structure should work. Use a 1-cycle loop block to control the flow: first go through symbols, then continue with the currently selected symbol
                          5ebd1bcc-1b9d-4b9f-ad4a-8d98d30f730c-image.png

                          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

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

                            @roar
                            One question... when I use the "Set current Market" block and below it I connect a variable block, it is saving 1 variable at a time doing 1x the loop in each asset individually, correct?
                            Do I have to use this same variable in all the blocks that have the "symbol" field?

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

                            Online Users

                            M
                            F
                            M
                            H
                            A
                            P
                            K

                            14
                            Online

                            146.7k
                            Users

                            22.4k
                            Topics

                            122.6k
                            Posts

                            Powered by NodeBB Forums | Contributors