Manage max pair orders using magic number

 

Hello guys, is there a way to limit orders using magic number?

For example i have 10 chart where run the same EA ,with 10 different pairs and 10 different magic numbers.

I just want to limit number of pairs open at the same time at specific number, i can allow multiple orders for same pair but not for more then pairs over a specific number.

Sameone have a code to test for it?

 
Mirco:

Hello guys, is there a way to limit orders using magic number?

For example i have 10 chart where run the same EA ,with 10 different pairs and 10 different magic numbers.

I just want to limit number of pairs open at the same time at specific number, i can allow multiple orders for same pair but not for more then pairs over a specific number.

Sameone have a code to test for it?

open a job order for freelancers

or

search from forum like this  https://www.mql5.com/en/forum/240182

how to count open orders and not include pending orders?
how to count open orders and not include pending orders?
  • 2018.04.24
  • www.mql5.com
Dear how to count only open orders like OP_BUY and OP_SELL only. i like to compare order count and after i want to execute the program...