Custom signal

 
hi,
I follow this link "https://www.mql5.com/en/articles/691" to create Myoiwn Signal.
There's no errors compilation, but in execution i face the following issue:
cannot load "examples\\MACD.ex5" [4002].
here after the Cindicator initialisations, anyone can help me.
Thank you and regards
Hamid

bool Follows::InitMyCustomIndicator(CIndicators *indicators)
{
//--- check pointer
if(indicators==NULL)
return(false);
//--- add object to collection
if(!indicators.Add(GetPointer(m_Fol)))
{
printf(__FUNCTION__+": error adding object");
return(false);
}
//--- initialize object
//--- set parameters of the indicator
MqlParam parameters[6];
//---
parameters[0].type=TYPE_STRING;
parameters[0].string_value="Examples\\MACD.ex5";
parameters[1].type=TYPE_INT;
parameters[1].integer_value=m_ma_period;
parameters[2].type=TYPE_INT;
parameters[2].integer_value=m_ma_conteur;
parameters[3].type=TYPE_STRING;
parameters[3].string_value=m_ma_symb_1;
parameters[4].type=TYPE_STRING;
parameters[4].string_value=m_ma_symb_2;
parameters[5].type=TYPE_INT;
parameters[5].integer_value=m_ma_applied;
//--- object initialization

if(!m_Fol.Create(m_symbol.Name(),m_period,IND_CUSTOM,6,parameters))
{
printf(__FUNCTION__+": error initializing object");
return(false);
}
//--- number of buffers
if(!m_Fol.NumBuffers(5)) return(false);
//--- ok
return(true);
}
Trading Signal Generator Based on a Custom Indicator
Trading Signal Generator Based on a Custom Indicator
  • www.mql5.com
In this article, I will tell you how to create a trading signal generator based on a custom indicator. You will see how you can write your own trading model for a custom indicator. I will also explain the purpose of model 0 and why IS_PATTERN_USAGE(0)-type structures are used in the trading signal module. The article will use two types of code...
 
abhamid :
Привет,
Я перехожу по этой ссылке "https://www.mql5.com/ru/articles/691", чтобы создать Myoiwn Signal.
Там нет ошибок компиляции, но при исполнении я сталкиваюсь со следующей проблемой:
невозможно загрузить "examples \\ MACD.ex5" [4002].
Здесь, после инициализации Cindicator, любой может мне помочь.
Спасибо и всего наилучшего
Хамид

Your question is not clear: I took the signal module from the article and generated the adviser. The EA works and there are no errors.

 
Vladimir Karputov:

Your question is not clear: I took the signal module from the article and generated the adviser. The EA works and there are no errors.

     Dear Vladimir,

        Thank you for your reply, i follow your article, and using your signal module, and i have a same error. the Cicustom creation fails " if(!m_mci.Create(m_symbol.Name(),0,IND_CUSTOM,4,parameters))"

        In my moduke, a same issue "m_Fol.Create(m_symbol.Name(),m_period,IND_CUSTOM,6,parameters)" fails, here after the copy of expert errors.

       Thank you



 
abhamid:

     Dear Vladimir,

        Thank you for your reply, i follow your article, and using your signal module, and i have a same error. the Cicustom creation fails " if(!m_mci.Create(m_symbol.Name(),0,IND_CUSTOM,4,parameters))"

        In my moduke, a same issue "m_Fol.Create(m_symbol.Name(),m_period,IND_CUSTOM,6,parameters)" fails, here after the copy of expert errors.

       Thank you



        Sorry using your module, it works.

        But with my still with issue.

Reason: