Apologise not cleared question i asked?
I need of mql code to find the amount of opened or pending orders limit set by broker? Is this possible?
The question is why do you care? There is no point in opening more than a few at max.
No point in pending orders. Humans can't watch the chart 24/7 they use pending orders. EA's just need to wait until price reaches a level.