Help me understand this EA New comment [Deleted] 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? Files: RenkoLiveChart_v600.6.mq4 22 kb MT4 v4.00 Build 950 NewTick Event on Offline Charts A question for the MQ developers - how to trigger the tick? Add 2 custom indicators automatically to a chart with mql4 EA Alain Verleyen 2016.11.09 23:15 #1 It send ticks "fake" ticks to the chart. [Deleted] 2016.11.10 09:44 #2 Ok. what i don't understand is how it does! can you elaborate a bit about this please?? Alain Verleyen 2016.11.10 14:43 #3 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. New comment
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:
{
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?