fxDreema

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

    Position Created block with failure.

    Bug Reports
    4
    26
    1773
    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.
    • fxDreema
      fxDreema last edited by fxDreema

      I did one more change and I got a little bit more success, in particular when 2 positions and 1 pending order is created, but it doesn't work correctly when 2 positions and 2 pending orders are created. It seems that I have to rewrite the algorithm for detecting Trade events. This will probably take days.

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

        @fxDreema So this problem is solved?
        Can we test to validate?

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

          I rewrote some functions and I uploaded the changes. I did this for MQL4 and MQL5. What is different is the way events are detected, basically now the detection should work when there are multiple events happening at the same time.

          Here is a project that I used to produce these events at the same time: https://fxdreema.com/shared/CKK1K7bQ What is different than your project is that initially I'm creating 2 positions and 2 pending orders. SL for both positions is the same and OpenPrice for both pending orders is the same. So all these 4 events would happen at the same time.

          I used this sllevel variable, because I noticed anothe problem that I consider a bug. It's that if I use (in loop).... Stop-Loss in both Buy pending order blocks, the value that we get in the second block is wrong. I think Stop-Loss becomes the Stop-Loss of the pending order from the first Buy pending order block.

          Here is a little trick that can help you see the data of the events. In the generated source code find debug = false; and change it to debug = true;. This will allow printing of some data in the logs, it's very nice.

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

            I confirm that there is a "bug" when after some of the "For each..." blocks a non-pink block is used. Like in the example in my previous post, where "Buy pending order" changes the values of "(in loop)...".

            I tried to find if this is a new problem, but I think the problem is ancient, it has always been like this. I guess this explains why very often people are using pink blocks after buy/sell blocks without problems - those buy/sell blocks are acting like "For each...". So even if I find a way to fix this bug, maybe it will broke some people's projects. It looks to me like a bug, so old that it turned into a feature.

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

              @fxDreema
              The "For each position" block has a problem.
              I have some EA's of mine that depend on this block to obtain price values only for the last order, or for all orders, but they simply get confused. Sometimes it does what it needs to do, sometimes it doesn't do what it needs to do, something intermittent, usually involving calculations.
              I'm trying to draw up a project showing what kind of bug is happening and as soon as I have it I'll open a specific BUG for this block, but if you want to start reviewing it, please do so, you might find something and apply some correction before even if I try to reproduce the errors.

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

                @fxDreema Thanks for working on the "Position Created" block.
                You are Amazing !! Thank you for the feedback !

                Quant Engineer
                www.abfs.tech

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

                Online Users

                H
                J
                E
                T
                E
                B
                A

                17
                Online

                146.6k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors