How to prevent 2 opposite positions by 2 traders to be open in my account


hello everyone…
is there any way to prevent in my account that 2 opposite position will be open on the same pair… i will explain…
lets say im following 2 traders and one open eur/usd (buy) and the second trader opens eur/usd (sell) so now i have in my account 2 positions on the same pair one loosing and one earning,
maybe there is a rule i can create for that