iHighest in a DLL
You cannot use mql command in your dll, you have to use the language your dll is based on.
Thanks for the answer - so how can transform this
High[iHighest(Symbol(), 60, MODE_HIGH, 24, 1)];
in C++ for example.
Well, if you don't know c++ this might be over your head.
If you want to learn c++ http://www.cplusplus.com/doc/tutorial/ is a startingpoint
Beside that, arrays behave much like mql. Why don't do the search for the highest value manually?
Hi everyone,
I am trying to code a DLL to learn how to protect my codes but I was wondering the following :
How do you code the following statement in the DLL
double Highest = High[iHighest(Symbol(), 60, MODE_HIGH, 24, 1)];
I tried different approaches but all failed - I am using the expert sample DLL that comes with MT4
MT4_EXPFUNC void __stdcall fDemo()
{
double dOpen = Rates[0].high;
// would like to insert the code here
}
Thanks for your help.
Cheers