fxDreema

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

    FIFO rules for close all trades

    Questions & Answers
    3
    6
    1739
    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.
    • E
      edwardseer last edited by

      hi, there is a problem with the ea generated by fxdreema as it attempted to close the latest trade instead of the oldest trade first. can you set an option to switch the order to make it fifo compliant?

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

        Use these two pink blocks:

        For each Trade -> close

        In the first block there and settings to choose how trades must be sorted, with how many of them to work, how many of them to skip and even more settings.

        1 Reply Last reply Reply Quote 0
        • T
          trbedell last edited by

          I am having a FIFO error also.

          I have MT4 adding .1 lot positions Long/Short - Pairs traded... XXX/USD or USD/XXX. No crosses.

          When LONG I may have 10 open positions each decending in age from Oldest to Newest. As the trade moves, I would like to

          1. For Each Trade (Oldest to Newest) Close the 3 (three) oldest trades.

          Once the loop completes, it should pass to CLOSE, as see in the image below.

          Here is an image and a result. Your assistance would be appreciated.

          For Each Trade.PNG

          fifo.PNG

          Can you assist in helping me understand the settings?

          Thanks in advance,

          ......
          fifo.PNG
          For Each Trade.PNG

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

            What is this FIFO rule? 😮

            1 Reply Last reply Reply Quote 0
            • T
              trbedell last edited by

              It is a way to screw the trader... Implemented by the NFA, a US reglatory agency.

              http://fxtrade.oanda.com/help/close-trades-fifo

              If you have multiple trades in a single currency, you must close the oldest FIRST. MT4 will not execute a LONG, if shorts are present. You must close the OLDEST first, if closing any trades. You must close them ALL first to move your position in the other direction.

              In short FIFO sucks. But, if you want to trade, you must adhere to FIFO. So, If I have 10 trades EUR/USD @ .10 Lot = 1.0 Lot. If I want to close ANY trade, I must close the oldest first.

              If I want to close 2,3,5 trades. I need to pick 2 of 10 oldest, close.

              Thanks in advance,

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

                Well, with this "Oldest to newest" it should work. I guess, if you don't have other trades from other EAs, because they are probably not detected from this EA. It depends, there are filter settings. But you have set "Every n trade", whith breaks your fifo rule - this setting skips some trades, the idea is for example to close each second trade. So I think this is the problem.

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

                Online Users

                A
                N
                S
                E
                A
                M
                T
                M
                A
                E
                K
                J
                J

                23
                Online

                146.7k
                Users

                22.4k
                Topics

                122.6k
                Posts

                Powered by NodeBB Forums | Contributors