the broker's MT4 server keeps terminal login active for 30 seconds only... false.
The connection is open always because the screen is being updated.
AccountBalance, OrderSelect, RefreshRates, etc are just reading local data - They do not call the server. Only OrderSend, OrderModify, and OrderClose do.
If you want the quickest order execution, place a pending order.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
All,
As per thread http://www.forexfactory.com/showthread.php?p=5662238#post5662238, the broker's MT4 server keeps terminal login active for 30 seconds only, after the last 'activity' from the terminal. Therefore, if you send a order after a period of inactivity, a fresh login is done which causes approximately 500 ms delay in execution of the order.
Please clarify if the contents of the thread are correct - viz 500ms delay in order execution due to fresh login? Apart from keeping a dummy order open to keep your login session active are there other ways to keep your session active - eg executing AccountBalance() function every 25 secs?