is there any way to automaticly (via EA or script) load all close orders into "Account history" that the settings in "Account history" will show "All History" ?
there is a WM_COMMAND that can handle this ? (for SendMessageA()/PostMessageA()) ?
May be it can be found in the russian forum.
For example -> research по теме кодов к PostMessageA
May be it can be found in the russian forum.
For example -> research по теме кодов к PostMessageA
unfortunately I can't write & read Russian
I'll try it today a little later.
thanks a lot I appreciate that
May be this will help for a while -> the last post of the page https://www.mql5.com/ru/forum/110207 :
.
Ilnur 06.08.2008 21:15
.
He says:
"
To catch Windows messages I use Spy++ from Visual Studio.
This program works without installation, it is powerful and easy in use.
See attachment with this program.
"
.
And the picture from this -> https://www.mql5.com/ru/forum/112689/page2 :
.
thanks I will study this
Ais thank you very much, for those interested in, the code is:
#include <WinUser32.mqh> #import "user32.dll" int GetAncestor (int hWnd, int gaFlags); int SetForegroundWindow(int hWnd); int PostMessageA (int hWnd, int Msg, int wParam, int lParam); #import int start() { int hwindow=GetAncestor(WindowHandle(Symbol(),Period()),2); if(hwindow!=0) { SetForegroundWindow(hwindow); //active the terminal (the terminal most be the active window) Sleep(100); PostMessageA(hwindow,WM_COMMAND,33058,0); } else return; return(0); }
Works here, however I would like to point out that I personally wouldn't trust this kind of code in a Live account; PostMessageA() workarounds are usually not very reliable. If the EA relies on history being set to 'All history' then the user must be instructed to do so (but I guess adding this code as a backup won't do any harm...).
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
is there any way to automaticly (via EA or script) load all close orders into "Account history" that the settings in "Account history" will show "All History" ?