FIFO rules for close all trades
-
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?
-
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.
-
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
- 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.
Can you assist in helping me understand the settings?
Thanks in advance,
......
fifo.PNG
For Each Trade.PNG -
What is this FIFO rule?

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