Multi-EA issue

 
In MT4, EAs identify orders by magic number. But in MT5, one symbol has only one position at one time, and it has only one magic number at one time. EA can find deals by POSITION_ID. But if positions reverse, POSITION_ID changes. So after positions reverse, EAs might lose controls of the position. Especially when many EAs work on the same symbol. What's the design of the resolution? Thanks.