since B600> strings are unicode so ... see here
Unicode and ANSI names
PostMessageW (Unicode) and PostMessageA (ANSI)
of course PostMessageA works just fine because in this case it's not string related
but i decided to adapt everything it's my choice
of course PostMessageA works just fine because in this case it's not string related but i decided to adapt everything
it's my choice
Got the code into my script, all working as good as before, got handle of the window, post the msg, EA is just as dead as before.
The ticker works well but start() isn't called by the terminal on the offline chart !
What I hope to understand now is why I don't need a false tick or anything for the terminal to call the start function of an indicator on an offline chart, they all work just fine as new data comes from the feeder
but that data feed doesn't work with the EA ?
Is there a way to test if the window received the tick ?
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError. GetLastError returns ERROR_NOT_ENOUGH_QUOTA when the limit is hit.
it's all in here
PostMessageW(hwnd,WM_COMMAND,33324,0); // update the chart
int msg = RegisterWindowMessageW("MetaTrader4_Internal_Message");
if (PostMessageW(hwnd, msg, 2, 1) == 0) //fake a tick
Print("Fake Tick triggered");
Yes, if the post message fails but that doesn't tell if the message is posted and still in a Que or was received by the window intended to .
I was looking at the GetMessage to force the window to receive the msg from the poster hwnd, but that doesn't seem to be included in the user32.dll
Yes, if the post message fails but that doesn't tell if the message
is posted and still in a Que or was received by the window intended to .
the solution is SendMessageW
i think i know what your problem is
what do you use to generate the offline chart ? periodconverter ? script or indicator ?