10 trade per day

 

I have check several forum but i did not get any solution to my problem.

i am trying to build an EA which can only take 10 trade maximum or an other number of trade i want and it should wait for the closing of  the rest trade.

So can anyone help me regarding this problem.And also can anyone tell me about error 4109 to how to resolve it.

Thanks in advance.

 
Reason: