I think there is no built in function so perform such request to the server...
...any idea on how to do that?
Good starting point... thanks!!!
I was thinking anyway to something more straight forward cause I dont really like the idea to add another DLL to my application... something like querying for some symbol and see what MT returns...
Maybe it can be done with marketinfo.
Gotta think abt it.....
I was thinking anyway to something more straight forward cause I dont really like the idea to add another DLL to my application...
No DLLs involved. The code is using only native MQL functions. And, if you don't like including MQL libraries, there's nothing to stop you taking the code and building it directly into your EA/indicator.
Yes, you are right, no DLL... I got confused in the hurry :)
This solution is anyway messing with external files that could no longer exist in future releases... so I would be very careful to implement a system that relies on that.
The idea I just got is to call any of the predefined variables (High or Low or Close.... ) and see what it returns.
I just made a test a test and I get 0.000 if the symbol does not exist.
Surely I would have been happier if the result was -1 but I think that also NULL is not so bad for working out a query system.
The aim is of course to asses if the symbol I pass to the query function is known to the server.
Thank you sxTed!
...seems I was close but you hit the spot... exactly what I was looking for ;)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I think there is no built in function so perform such request to the server...
...any idea on how to do that?
Cheers,
Zyp