Dear Pengie ,
First off all , thank you very much for your help, you are very kind.
Secondly, I'm sorry for posting this problem in this thread

, but I thought that this problem is due to OrdersTotal() function you had mentioned above ( sorry but I have just started learning MQL ) .
Sorry again.
Ammar