They are also undefined in MQL4. Maybe PostMessageA is a custom function and WM_COMMAND is a custom define?
Documentation on MQL5: Standard Constants, Enumerations and Structures / Chart Constants / Types of Chart Events
- www.mql5.com
Standard Constants, Enumerations and Structures / Chart Constants / Types of Chart Events - Documentation on MQL5
enivid:
They are also undefined in MQL4. Maybe PostMessageA is a custom function and WM_COMMAND is a custom define?
They are also undefined in MQL4. Maybe PostMessageA is a custom function and WM_COMMAND is a custom define?
Thank you enivid, but this is what is written in MQ4 indicator:
//---- refresh window not frequently than 1 time in 2 seconds
if(hwnd!=0 && cur_time-last_time>=2)
{
PostMessageA(hwnd,WM_COMMAND,33324,0);
last_time=cur_time;
}
Can somebody help...?
crossy:
Yeah, that can be written in MQ4 indicator but for it to work even in MT4 hwnd, WM_COMMAND and PostMessageA() should be defined somewhere in this indicator or in the included file.Thank you enivid, but this is what is written in MQ4 indicator:
//---- refresh window not frequently than 1 time in 2 seconds
if(hwnd!=0 && cur_time-last_time>=2)
{
PostMessageA(hwnd,WM_COMMAND,33324,0);
last_time=cur_time;
}
Can somebody help...?
enivid:
Yeah, that can be written in MQ4 indicator but for it to work even in MT4 hwnd, WM_COMMAND and PostMessageA() should be defined somewhere in this indicator or in the included file.
Yeah, that can be written in MQ4 indicator but for it to work even in MT4 hwnd, WM_COMMAND and PostMessageA() should be defined somewhere in this indicator or in the included file.
Yes, My freind You right.
Sorry.
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
Hello freinds,
I have an indicator in MQL4, with the following code line:
PostMessageA(hwnd,WM_COMMAND,33324,0);
The 2 colored builtin indicator are not known at MQL5.
Can somebody explain how to imigrate these 2?
Thanks.