traderdoc:
How can I create a synthetic tick for processing between the regulary tick from data feeds of the broker?
I want to trigger the function start() even if no tick is present!
What is the solution?
Thanks!
you have to run a loop inside Start() so you dont' have to wait for tick
#import "user32.dll" bool PostMessageA(int hWnd, int msg, int wParam, int lParam); int RegisterWindowMessageA(string lpString); #import #define MT4_TICK 2 // MT4 internal message /** * Sends a synthetic tick to the current chart only. If you call it from init() * make sure the chart handle hWnd is initialized. * * @return int - error status */ int Chart.SendTick() { if (IsTesting()) return(0); int hWnd = WindowHandle(Symbol(), NULL); if (!hWnd) return(ERR_RUNTIME_ERROR); int msg_id = RegisterWindowMessageA("MetaTrader4_Internal_Message"); PostMessageA(hWnd, msg_id, MT4_TICK, 0); return(ERR_NO_ERROR); }additionally see here: https://www.fx1.net/wiki/pmwiki.php/MT4Ticker/MT4Ticker
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
How can I create a synthetic tick for processing between the regulary tick from data feeds of the broker?
I want to trigger the function start() even if no tick is present!
What is the solution?
Thanks!