you should change MARKET to false.
Mohammad Hashemi:
you should change MARKET to false.
you should change MARKET to false.
sorry, my bad! I made it, but I still getting empty values for almost the symbols for SymbolInfoDouble(SymbolName(j,MARKET),SYMBOL_ASK), since the SYMBOL is not synchronized (or MT does not have information yet for this symbol).
My doubt is, how to load that and check if it's already synchronized and the write in the file. Thanks!!
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi!
I want to export to a csv file all papers of trading server and some of their current information, mainly the best bid and ask.
I already now that MT is event based so I now that the correct way to that would using some of the events functions like OnTimer or OnTick, but I'd like to export information of symbols that are not the current graph window or even not in the market watch, since I would be limited to 1.000 symbols.
So, what should be the correct or the best way to do that? Right now, I'm using an "Sleep" and checking for X times if I can get the some information like the last trade price, and then I go to the next symbol, but it takes long and it's not smart, since sometimes the symbol may take longer than that to load and I'll miss the information :)
Is there some way to verify if the symbol information is loaded or is there a way to force it's synchronization and to monitor when it's ready?
So, what I have so far right now:
Thanks in advance!