if you are using the same format i think you are, here's a way i prefer to use, i learned it from aaragorn .
Where it says, which i think defines your description.
if(OrdersTotal() < 1)[/php]
i like to add a global variable and use it like this
if(OrdersTotal() < MaxOpenTrade)
and be sure to add global variable
[PHP]extern double MaxOpenTrade = 4at the top.
i use this method simply becuase it's quicker to edit, and can be done quickly through the tester window for experementing.
simple as that

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Trading an EA, I have only one trade pending.
I suppose it's because in program there is : If(total<1)......
What if I want till 4 trades maximum, but on 4 different pairs.
Thanks for help.