FIFO and Hedging Problem Solver

 

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.

 
rippin:

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
FIFO thread: https://www.mql5.com/en/forum/355248
FIFO status script:

---------------- 

My account is FIFO when people try to subsribe they get a message that i do not follow FIFO rules Please HELP
My account is FIFO when people try to subsribe they get a message that i do not follow FIFO rules Please HELP
  • 2019.09.24
  • Donald Wagner
  • www.mql5.com
Hi Donald, I'm trying to subscribe to your signal. I'm using a account but I am unable to subscribe due to FIFO rules...
 
rippin: FIFO and hedging rules make many EA's unworkable.

Code it properly
          OrderModify changing all open orders reguardless of ticket# - MQL4 programming forum #1.2 (2020)