How to check magic numbers of open positions

 

Hi guys,

I need your coding help. I have different open positions from different EAs with unique magic numbers.

Now I want to let check every EA if the EA wants to open a new position to check if there is already an open position with a given magic number.

How can help?

Best regards,

Reason: