Synthetic tick

 

I look for code in a DLL which produce a regularly synthetic tick.

Thanks

traderdoc

 
Strategy tester. Just return from start(), and you'll get the next tick.
 

No, that's not what I mean.

The EA should start the dll and this dll sends continuously ticks to start the start ()-function.

 

Well, I noticed you need only the DLL... but you may also start a script in the chart where the EA runs.

The DLL would do the same, you just need to send it the window handle. 

#property show_inputs
#include <WinUser32.mqh>

#import "user32.dll"
int RegisterWindowMessageA(string lpString); 
#import

extern int INTERVAL_MILLIS = 1000;

int start() {
        while(!IsStopped()) {
                int hwnd = WindowHandle(Symbol(), Period());
                int MT4InternalMsg = RegisterWindowMessageA("MetaTrader4_Internal_Message");
                if(hwnd != 0 && MT4InternalMsg != 0) {
                        PostMessageA(hwnd, MT4InternalMsg, 2, 1);
                } 
                Sleep(INTERVAL_MILLIS);
        }
        return(0);
}
 
Ovo:

Well, I noticed you need only the DLL... but you may also start a script in the chart where the EA runs.

The DLL would do the same, you just need to send it the window handle. 

 

Thanks, I know this way, but I want to have the code in a dll.

What is The solution?

 traderdoc 

 

 

@traderdoc: Thanks, I know this way, but I want to have the code in a dll.

So basically you want someone else to write a dll for you. There are No-Slaves here. This forum is about mql4. Not some other dll language. If you've search and cannot find it then. Either you code-it, or pay someone to code it for you. Or keep waiting for someone else to feed you.

 
Super idea!
Reason: