fxDreema

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

    There must be a way to work with FIFO rules.

    Questions & Answers
    3
    10
    826
    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.
    • J
      jjtrader last edited by

      Hello,

      I am trying to figure out how to get my EA to work with FIFO rules. I spent a lot of time developing an EA that works great in Demo accounts but will not run properly in Live accounts. (US broker) What I want is to take 2 trades and have the first trade close on TP and the second trade run until my exit kicks in. But in my Live account, It takes 2 trades BOTH with no TP....

      Previous forum suggestions:

      • Use different lot sizes
      • Use the pink blocks

      I have tried both these suggestions but still can't get it. I have even tried to program a partial close of one trade, but that isn't working either. Can someone please take a look and see what I'm doing wrong?

      https://fxdreema.com/shared/L4JJxi15d

      0_1655726474658_80fdab42-e048-41b4-9cdd-659583e38d1d-image.png

      Thank you!

      PS - excerpt from broker support email

      "Thanks for your email. Please note that per the US regulations you are not allowed to have multiple stops or take profit levels for an FX pair even if you have placed separate multiple trades. It is due to the FIFO closure rule which requires you to close the oldest position on the FX pair before you are able to close a newer position on the same trade. If your EA can take that into account while placing multiple trades on the same FX pair then it would be possible to trade."

      l'andorrà R 3 Replies Last reply Reply Quote 0
      • l'andorrà
        l'andorrà @jjtrader last edited by

        @jjtrader The only solution I can see right now is opening both trades WITHOUT TP level. Then you create two groups, one for each open trade and then make the pink blocks to close one of them when hitting the requestes TP distance. That way the broker will not see (ie, detect) any TP level on the chart.

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

        J 1 Reply Last reply Reply Quote 0
        • R
          RGoo @jjtrader last edited by

          @jjtrader
          Do it the way the broker asks. Close the oldest trade first. If you want to open several "double" trades, it will be more difficult.
          Here is a small suggestion, but I have not tested it and not completed.

          https://fxdreema.com/shared/tmRWJYH7d

          RGoo

          1 Reply Last reply Reply Quote 0
          • R
            RGoo @jjtrader last edited by

            @jjtrader
            I have improved it once again. When the old trade is closed, the younger one becomes the oldest.
            Well, logic should be treated just like a woman, always careful and think beforehand what you want to do.

            https://fxdreema.com/shared/Mdp76oeIb

            RGoo

            J 1 Reply Last reply Reply Quote 0
            • J
              jjtrader @RGoo last edited by

              @rgoo Thanks! The whole "Group" concept confuses me, so showing me the through the link helps a lot!

              Which example would you suggest would work better? Number 1 (2 trades both off the spread check block) or number 2 (trade 1 and trade 2 piggyback in line off the spread check block)?

              Thanks again! I really appreciate your time.

              JJ

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

                @l-andorrà Thank you for your response. Can you please provide a link to an example of this? "Groups" are confusing to me.

                Thanks again!

                R 2 Replies Last reply Reply Quote 0
                • R
                  RGoo @jjtrader last edited by RGoo

                  @jjtrader

                  deleted because of update

                  RGoo

                  1 Reply Last reply Reply Quote 0
                  • R
                    RGoo @jjtrader last edited by RGoo

                    deleted because of update

                    RGoo

                    J 1 Reply Last reply Reply Quote 0
                    • J
                      jjtrader @RGoo last edited by

                      @rgoo Thank you RGoo! This us very helpful.

                      R 1 Reply Last reply Reply Quote 0
                      • R
                        RGoo @jjtrader last edited by RGoo

                        @jjtrader
                        The interesting thing about programming is that there are many ways that lead to the goal and you can program almost everything easier. I have determined a much simpler way.

                        Even without an exact start, the EA keeps its head above water. Your strategy seems to be quite good.

                        You can remove the display, that was only for control.
                        The BE could also be helpful, but you can also delete it.

                        https://fxdreema.com/shared/Poq5jqbBd

                        RGoo

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

                        Online Users

                        I
                        E
                        E
                        O
                        O
                        D
                        F
                        K
                        C
                        E

                        38
                        Online

                        146.6k
                        Users

                        22.4k
                        Topics

                        122.6k
                        Posts

                        Powered by NodeBB Forums | Contributors