This forum is in read-only mode now. You may discuss your questions on forums of MQL4.community and MQL5.community

metatrader api question


Back to topics list
avatar
3
cmoicmoi 2004.12.19 22:43 
i use the version 3 of the api , i have already a code example that works with quotes streaming but i want to retrieve all the quotes at the same time when the program starts and only after use the streaming for quotes changes ...

i tried GetPrices() function but when the market is closed this function returns an error "trade disabled" and not the last known bid/ask for the securities.

any suggestion to always be able to retrieve the last known bid/ask ?
avatar
4464
Slawa 2004.12.20 11:53 
store last bid/ask when they are accesible
Back to topics list  
Download MetaTrader 5 (450 Kb, web installer) — a new terminal for financial markets