How to AutoRefresh on Chart?(HST File,offline)

 

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! 

 
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!

 
Here & Here.
 
ubzen:
Here & Her
HarriMQL4:

Play around with this code (no guarantee, not my code. Supplied by "Eager"):

Good luck!

thank you so much!

 But this script with wrong, must be to add #import "user32.dll" and Register PostMessageA function! 

Reason: