FIFO and hedging rules make many EA's unworkable. For hedging, what might work is a tool, copier maybe, to redirect trades to separate accounts for longs and shorts.
In addition, for FIFO, trades could be netted out using a weighted average algorithm which would make convert a series of trades into a single trade.
Or, when as trades close, they could be closed with a similar method.....I'm not really sure. I have a feeling this would get down to broker fees.
But maybe really smart people have already thought about this or those same people could offer up some ideas along these lines.
I am also studying FIFO. Hope someone pro can share their experience:)
There are some information which may be useful to know:
FIFO rules: post #5
FIFO thread: https://www.mql5.com/en/forum/355248
FIFO status script: #21
----------------

- 2019.09.24
- Donald Wagner
- www.mql5.com
Code it properly
OrderModify changing all open orders reguardless of ticket# - MQL4 programming forum #1.2 (2020)

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
FIFO and hedging rules make many EA's unworkable. For hedging, what might work is a tool, copier maybe, to redirect trades to separate accounts for longs and shorts.
In addition, for FIFO, trades could be netted out using a weighted average algorithm which would make convert a series of trades into a single trade.
Or, when as trades close, they could be closed with a similar method.....I'm not really sure. I have a feeling this would get down to broker fees.
But maybe really smart people have already thought about this or those same people could offer up some ideas along these lines.