Discussion of article "Library for easy and quick development of MetaTrader programs (part XIII): Account object events" - page 2

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
A small clarification regarding the definition of the terminal type in the constructor:
this.m_long_prop[ACCOUNT_PROP_SERVER_TYPE] = (::TerminalInfoString(TERMINAL_NAME)=="MetaTrader 5" ? 5 : 4);
It would probably be more correct to write it like this:
this.m_long_prop[ACCOUNT_PROP_SERVER_TYPE] = (::StringFind(TerminalInfoString( TERMINAL_NAME), "MetaTrader 5") != -1 ? 5 : 4);
Since the broker's name may also appear there....
Since the broker's name may also appear there....
Can you please send me a link to a broker where this happens?