Synchronise chart with history through program?

 

I use a windows application to get ticks from another server and update every one minute it to the history(BTC_Mini.hst) file inside folder "C:\Program Files (x86)\Ava MetaTrader\history\TEST".

Now I login with server name as "TEST" and there's this journal :

'username': connect failed [No connection]

but now I can open the symbol chart and if i refresh it manually(right click refresh/ Alt+C+R) the chart gets updated till last entry in BTC_Mini.hst file, is there a way to refresh it through any program(indicator or EA) since its really annoying to manually refresh every time looking for an update.

Any help truly appreciated.

 
kshyamn: is there a way to refresh it through any program(indicator or EA) since its really annoying to manually refresh every time looking for an update.
Just like any offline chart generator (period converter/range bars,) you must send a update message to the offline chart. https://www.mql5.com/en/forum/124688
   if(hwnd == 0) {
      //trying to detect the chart window for updating
      hwnd = WindowHandle(Symbol(), NewPeriod);
   }
   if(hwnd!= 0) {
      if (IsDllsAllowed() == false) {
         //DLL calls must be allowed
         DebugMsg("Dll calls must be allowed");
         return (-1);
      }
      if (PostMessageA(hwnd,WM_COMMAND,0x33324,0) == 0) {
         //PostMessage failed, chart window closed
         hwnd = 0;