how to sort tools within the code

[Deleted]  

Tell me please, how can I sort the tools in MT4 programmatically in the adviser. Ie in specification there is forex, sfd.

But how, for example, to distinguish currency from metal, metal from indexs etc. for an advisor.



The question is how to sort these tools within the code? Insede EA or indicator