function to return order numbers per symbol

 

I trading about 15 currency pairs, and I would like to write a method (function or class) to return the number of open orders per symbol.

Any idea how can i do this?

Thanks, Phil

 

Please read the documentation about all Trade Functions but especially in regards to the following functions:

You should also familiarise yourself with the Programming of Trade Operations, but please note that this tutorial is in the old style of MQL4, but you should be using the new Updated MQL style.

Reason: