Hello All,
I'm turning once again to the friendly folk and FF for some guidance on MT4 programming. I've searched the documentation but am yet to find out if I can do what I'd like to do.
I'm writing an EA that analyses data in all currencies. For this EA, the more currencies available to analyse the better. Each broker has a different range of currencies on offer, so it would be nice to make the EA automatically adjust to whatever symbols are available. At the moment my EA gets divide by zero errors, as it is trying to perform calculations for data that may not be available.
Can anyone tell me if it is possible to automatically retrieve a list of valid symbols from the broker? It is clear that the MT4 application does this in the watch window, so I expect it should be possible in an EA.
Also, is it possible to check the symbol to make sure it is usable before processing data from it? Again, I want to ensure EA robustness and remove the dreaded divide by zero error in the unlikely event that a broker withdraws a currency.
Thanks once again.
Michael
I'm turning once again to the friendly folk and FF for some guidance on MT4 programming. I've searched the documentation but am yet to find out if I can do what I'd like to do.
I'm writing an EA that analyses data in all currencies. For this EA, the more currencies available to analyse the better. Each broker has a different range of currencies on offer, so it would be nice to make the EA automatically adjust to whatever symbols are available. At the moment my EA gets divide by zero errors, as it is trying to perform calculations for data that may not be available.
Can anyone tell me if it is possible to automatically retrieve a list of valid symbols from the broker? It is clear that the MT4 application does this in the watch window, so I expect it should be possible in an EA.
Also, is it possible to check the symbol to make sure it is usable before processing data from it? Again, I want to ensure EA robustness and remove the dreaded divide by zero error in the unlikely event that a broker withdraws a currency.
Thanks once again.
Michael