------------------------
I have a question regarding LIFO/FIFO.
So I'm running an FX automated strategy with FXCM. I enter multiple positions from the same side (long). Each order is assigned a unique ID (Long0, Long1, Long2 etc). I have a specific profit target for each order.
Situation:
I have EURUSD Long0 open at 1.1050 with a proft target of 1.1075. I also have Long1 open at 1.0990 with a profit target of 1.1015. Now Long1 hits profit target of 1.1015.
Question:
Does Long1 in fact get closed and Long0 still be open? (LIFO). Or does in fact Long0 be closed for a loss and Long1 still be open (FIFO).
I ran it through the backtest and then it seems it runs LIFO, so it respects each individual profit target and closed accordingly. But I wonder how it goes in reality.
Thanks!
Comment