|
(Just for demo version)
The sample of write CCI.mq5 to DLL
The origin int OnCalculate() of CCI.mq5 as below: //+------------------------------------------------------------------+
int OnCalculate(const int rates_total, const int prev_calculated, {
//--- variables
(ExtCCIPeriod-1)); //+------------------------------------------------------------------+
When we write it to DLL, it will be: //+------------------------------------------------------------------+
int OnCalculate(const int rates_total, const
int prev_calculated,
begin+(ExtCCIPeriod-1));
ExtSPBuffer, ExtDBuffer, ExtMBuffer, ExtCCIBuffer); //+------------------------------------------------------------------+ We use one row code ( red ) take the place of original 15 rows code. Thus, if someone turns the ex5 to mq5 by EX5-MQ5 decompiler, he will not understand how the Jmi8_dll_mq5() to work, and the function Jmi8_dll_mq5() can’t work if it not been registered.
If you want to protect your mq5 by this method, you must give me your all or part of mq5 files. I can write a special DLL function for your mq5 code. Please trust to me, I will not use or sold your mq5 code.
|
||