How to call MQL function in C++ DLL?

 
I want to call MQL function(like iMACD(), iStochastic(), ...) in my C++ DLL.
Who can tell me how can I do? Thanks a lot!
 

no.

you only can call function in C DDL, send data of iMACD and function's parameters to DLL.

 

in dll

using namespace std;

# define MT4_EXPFUNC __declspec (dllexport)

BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
return TRUE;
}


double lowest(double[], double[] );
string Judge(double,double,double,double, double);

MT4_EXPFUNC void __stdcall passValue1(double Do_SL,double openPrice,double Support[],double close[],double low[],double bid,double orderID_exist[],double smm,int opened);


MT4_EXPFUNC void __stdcall passValue1(double Do_SL,double openPrice,double Support[],double close[],double low[],double bid,double orderID_exist[],double smm,int opened)

 
kelly:

in dll

using namespace std;

# define MT4_EXPFUNC __declspec (dllexport)

BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
return TRUE;
}


double lowest(double[], double[] );
string Judge(double,double,double,double, double);

MT4_EXPFUNC void __stdcall passValue1(double Do_SL,double openPrice,double Support[],double close[],double low[],double bid,double orderID_exist[],double smm,int opened);


MT4_EXPFUNC void __stdcall passValue1(double Do_SL,double openPrice,double Support[],double close[],double low[],double bid,double orderID_exist[],double smm,int opened)

 
Can someone please post a working example of this?
 
gctex:
Can someone please post a working example of this?
The above code does not solve the problem. It does not solve any problem. It is just some random (and incomplete) code snippet that does not serve any purpose.