Download MetaTrader 5
To add comments, please log in or register
Did you like the article? Share it with your friends!
d.bignotti
71
d.bignotti 2016.11.09 14:21 

Hello,

 

i'm pretty new to programming, i'm studiyng a Renko Expert Advisor, it converts a normal chart in a Renko chart. File is attached, i'm understanding pretty much everything, expect this:

 

void UpdateChartWindow()
{
  if(hwnd == 0)
  {
    hwnd = WindowHandle(sSymbolName, RenkoTimeFrame);
    if(hwnd != 0) Print("Chart window detected");
  }
  if(EmulateOnLineChart && MT4InternalMsg == 0) MT4InternalMsg = RegisterWindowMessageW("MetaTrader4_Internal_Message");
  if(hwnd != 0) if(PostMessageW(hwnd, WM_COMMAND, 0x822c, 0) == 0) hwnd = 0;
  if(hwnd != 0 && MT4InternalMsg != 0) PostMessageW(hwnd, MT4InternalMsg, 2, 1);
  return;
}

 

can anyone help me understand this, what's the difference beetween EmulateOnLineChart=True/Flase? 

Alain Verleyen
Moderator
29483
Alain Verleyen 2016.11.09 23:15  
It send ticks "fake" ticks to the chart.
d.bignotti
71
d.bignotti 2016.11.10 09:44  

Ok. what i don't understand is how it does! can you elaborate a bit about this please??

Alain Verleyen
Moderator
29483
Alain Verleyen 2016.11.10 14:43  
d.bignotti:

Ok. what i don't understand is how it does! can you elaborate a bit about this please??

Check documentation for mql4 functions.

Not mql4 function calls are using WINAPI (Windows DLL), you can check the documentation on Microsoft site.

/
To add comments, please log in or register