New Version of MetaTrader 4 Client Terminal Build 427
Aha, now its clear that You can add something new to mql4 language.
So, once again, please add bool AccountIsECN() function or int AccountType() function, refering to post https://www.mql5.com/en/forum/138806/page4#625217
// initiation code of EA int init() { int win_handle = WindowHandle(Symbol(), 0); if (win_handle == 0) Alert("{", Symbol(), "} error: Unable to determine the window handle."); return(0); }
Documentation claims "Returns the system window handler containing the given chart. If the chart of symbol and timeframe has not been opened by the moment of function calling, 0 will be returned."
But in my case, chart is opened all the time, only thing I do is switching accounts or timeframes. So, "by the moment of function calling" my chart has been opened, but function returns 0, why?
Aha, now its clear that You can add something new to mql4 language.
So, once again, please add bool AccountIsECN() function or int AccountType() function, refering to post https://www.mql5.com/en/forum/138806/page4#625217
There's no need for AccountType(). You can tell that using MarketInfo's MODE_MARGININIT. If your broker does not provide it (such Alpari UK) you can calculate that using MarketInfo's MODE_TICKVALUE and MODE_TICKSIZE.
There's no need for AccountIsECN(). You can tell that using MarketInfo's MODE_STOPLEVEL and MODE_FREEZELEVEL. Their values are zero.
And second thing, why sometimes WindowHandle (code below) returns 0 ?
Documentation claims "Returns the system window handler containing the given chart. If the chart of symbol and timeframe has not been opened by the moment of function calling, 0 will be returned."
But in my case, chart is opened all the time, only thing I do is switching accounts or timeframes. So, "by the moment of function
calling" my chart has been opened, but function returns 0, why?
This isn't MT stuff, this is Windows OS stuff, specifically MDI application stuff, just to get the handle, an apps must sends WM_MDIGETACTIVE. MT unable to get that handle because Windows OS doesn't yet make the handle available. Windows already has the handle, and will make the handle available when chart is responding. Call it again on start.
Sometime it helps to declare vars first then assign the value later, not to do both at the same time.
Hi,
the version on the Android Market (Google Play) is still 422 (without messages feature). When do you expect 427 will be available there, please?
Thanks
VC
And second thing, why sometimes WindowHandle (code below) returns 0 ?
Mmmmm how about make some real changes that will help traders real time like change or give options to the bloody huge big arse order window I cant beleive this thing is still the same after so many years all the updates come through and we get a 4 up in corner woopie bloody doo seriously ffs guys the order window is the one thing that needs urgent attention, please get onto it or atleast give us soem options.

- Free trading apps
- Free Forex VPS for 24 hours
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
New Versions of MetaTrader 4 Components build 427
The new update of MetaTrader 4 platform has been released. We remind you that starting on June 1, 2012 the support of client terminal builds below 416 will no longer be provided. Therefore we strongly recommend that you update your terminals to the latest build.
If you have an older build of the client terminal, but the update window does not appear when you connect to a trade server, please download the latest terminal version from our website at https://download.mql5.com/cdn/web/metaquotes.software.corp/mt4/mt4setup.exe and install it to your terminal directory. All the settings of your terminal will be preserved.
MetaTrader 4 Client Terminal build 427
Push notifications are short messages consisting of not more than 255 symbols. Such notifications are delivered immediately and they cannot be lost along the way.
Push notifications can be sent in two ways from the client terminal:
bool SendNotification( string text // message text );
This function allows MQL4 program to send push notifications to MetaQuotes ID specified in the terminal settings.Via alerts function - the client terminal allows to create the alerts used to notify about the market events. They are set at the "Alerts" tab of the "Terminal" window. One type of alerting about the events is sending push notifications.
Check "Enable Push Notifications" box to allow the client terminal to send messages.
Then, specify one or several MetaQuotes IDs separated by commas. To find out your MetaQuotes ID, open the mobile version of the terminal and go to Settings -> Messages page. That is how that page looks in the mobile terminal for iPhone:
Press "Test" button to test messages sending. If sending is successful, you will see the appropriate message and the test notification will be delivered to your mobile device.
To improve the quality of registration data, added the following data validation (incomplete list):
MetaTrader 4 Mobile build 427
MetaTrader 4 Smartphone build 427
The update will be available through the LiveUpdate system.