jxwit:
I can click mouse right button and refresh data on Chart.
How to AutoRefresh Data on HST File 's Chart?offline
thank you so much!
Play around with this code (no guarantee, not my code. Supplied by "Eager"):
#include <WinUser32.mqh> int MT4InternalMsg=RegisterWindowMessageA("MetaTrader4_Internal_Message"); int hwnd; int start() { ...... if (hwnd==0) { hwnd=WindowHandle(Symbol(),OutputTimeframe); if (hwnd!=0) Print("Chart window detected"); } .... PostMessageA(hwnd,WM_COMMAND,33324,0); //refresh offline window PostMessageA(hwnd,MT4InternalMsg,2,1); //incoming tick for EAs .... return(0); }
Good luck!
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
I can click mouse right button and refresh data on Chart.
How to AutoRefresh Data on HST File 's Chart?offline
thank you so much!