Hi Guys,
how can I code an EA that can trade 4 pairs, but each two pairs were traded with a specific magic number in one EA.
EA:
1.) buy EURUSD / sell GBPUSD <-- both pairs get magic number 1234
2.) buy EURUSD / sell USDCHF <-- both pairs get magic number 5678
So EA check for both magic number:
- open positions
- profit of open positions
- close that pairs with that magic number which are in given profit
Who can help me?
Best regards,
how can I code an EA that can trade 4 pairs, but each two pairs were traded with a specific magic number in one EA.
EA:
1.) buy EURUSD / sell GBPUSD <-- both pairs get magic number 1234
2.) buy EURUSD / sell USDCHF <-- both pairs get magic number 5678
So EA check for both magic number:
- open positions
- profit of open positions
- close that pairs with that magic number which are in given profit
Who can help me?
Best regards,
{Promotion Removed}