Experts: GbpChf

 

GbpChf:

Advisor for trading Gbp/Chf

Author: Vladimir Baskakov 

GbpChf
GbpChf
  • www.mql5.com
Advisor for trading Gbp/Chf. Algorithm for bar opening prices. Timeframe H1.
 

Pure plagiarism () - only the name of the indicator symbols has been changed:

//--- create handle of the indicator iMACD "0"
   handle_iMACD_0=iMACD("GBPUSD",PERIOD_H1,12,26,9,PRICE_CLOSE); 
//--- if the handle is not created 
   if(handle_iMACD_0==INVALID_HANDLE)
     {
      //--- tell about the failure and output the error code 
      PrintFormat("Failed to create handle of the iMACD \"0\" indicator for the symbol %s/%s, error code %d",
                  "EURUSD",
                  EnumToString(PERIOD_H1),
                  GetLastError());
      //--- the indicator is stopped early 
      return(INIT_FAILED);
     }
//--- create handle of the indicator iMACD "1"
   handle_iMACD_1=iMACD("USDCHF",PERIOD_H1,12,26,9,PRICE_CLOSE); 
//--- if the handle is not created 
   if(handle_iMACD_1==INVALID_HANDLE)
     {
      //--- tell about the failure and output the error code 
      PrintFormat("Failed to create handle of the iMACD \"1\" indicator for the symbol %s/%s, error code %d",
                  "GBPUSD",
                  EnumToString(PERIOD_H1),
                  GetLastError());
      //--- the indicator is stopped early 
      return(INIT_FAILED);
     }

The code was stupidly copied (the real code here: Dual MACD) - I put a redundant code in my code, a code that is not used, and this “copyist” got caught :)

Reason: