Indicator into EA (icustom code provided)

 

Hi all,


I am trying to turn the "Shepherd Harmonic Pattern Indicator" into an EA. The developer has provided the following icustom codes, below.

Can anyone point me in the right direction on where to start? Thank you


double buy_signal=iCustom(NULL,0,"Market\\Shepherd_Harmonic_Patterns",0,0); //if(buy_signal!=0){//buy}
double sell_signal=iCustom(NULL,0,"Market\\Shepherd_Harmonic_Patterns",1,0); //if(buy_signal!=0){//sell}
double bull_divergence=iCustom(NULL,0,"Market\\Shepherd_Harmonic_Patterns",2,0); //if(bull_divergence!=0){//buy}
double bear_divergence=iCustom(NULL,0,"Market\\Shepherd_Harmonic_Patterns",3,0); //if(bear_divergence!=0){//sell}
double sl_Value=iCustom(NULL,0,"Market\\Shepherd_Harmonic_Patterns",4,0); double tp1_Value=iCustom(NULL,0,"Market\\Shepherd_Harmonic_Patterns",5,0);
double tp2_Value=iCustom(NULL,0,"Market\\Shepherd_Harmonic_Patterns",6,0);
double Price_Action=iCustom(NULL,0,"Market\\Shepherd_Harmonic_Patterns",7);if(Price_Action!=0){//trade=true;}
 
https://www.mql5.com/en/docs
MQL5 Reference - How to use algorithmic/automated trading language for MetaTrader 5
MQL5 Reference - How to use algorithmic/automated trading language for MetaTrader 5
  • www.mql5.com
MetaQuotes Language 5 (MQL5) is a high-level language designed for developing technical indicators, trading robots and utility applications, which automate financial trading. MQL5 has been developed by MetaQuotes Software Corp. for their trading platform. The language syntax is very close to C++ enabling programmers to develop applications in...
Reason: