Discussion of article "The power of ZigZag (part I). Developing the base class of the indicator" - page 8

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
The third and fourth still don't compile.
'GetZigZagData' - none of the overloads can be applied to the function call TestZZZ_03.mq5 77 15
"Get ZigZag Data" - none of the overloads can be applied to the function call test z_03.mq5 77 15
---------------------
could be one of 2 function(s) TestZZZ_03.mq5 77 15
could be one of 2 function(s) TestZZ_03.at MQL5 77 15
---------------------
void CZigZagModule::GetZigZagData(const int,int,int,const string,const ENUM_TIMEFRAMES,const datetime,const datetime) ZigZagModule.mqh 52 22
______________
That is, the compiler swears that one and the same function is initiated with different parameters.
The third and fourth still do not compile.
Check the transmitted parameters. Either their number or types are incorrect. This is when calling GetZigZagData.
Thanks for the feedback. I don't know how to check the parameters yet, I'm just learning programming. From what I have managed to understand - in the code the Expert Advisor calls the GetZigZagData() method.
The first time with parameters GetZigZagData(h_zz,l_zz,t_zz),
the second time with different parameters GetZigZagData(zz_handle_current,_Symbol,_Period,start_time_in,stop_time_in).
The inclusion file has both options
written one after the other.
I loaded old archives, then new ones, deleted MT5 altogether, installed a new one from scratch, nothing helps, the error from the screen above persists.
ZY: Why do you program in C if you are not sure that you can address a function with different parameters?
I don't quite understand you. I have a lot of choices on what to program on? I have MT5, it is in MQL5, and I am trying to learn it.
I think that a function can be accessed with different parameters, I even read that it is called overloading. But I don't understand how to handle it. Moreover, I'm sure that it's not the author's mistake here at all, it's most likely that I'm making a mistake, the only question is where exactly ????.
CopyExtremums(copy_extremums); //--- Let's loop through the copied ZZ values GetZigZagData(m_zz_highs_temp,m_zz_lows_temp,m_zz_time_temp);
I think it's here.I changed the names of these functions in the inclusion file. I added numbers 1 and 2 to them respectively.
I found all references to them in the Expert Advisor and edited them. The old error disappeared, but a new one appeared. Indeed - some problem with data types. The translator wrote as follows:
'stop_time_in' - unable to convert enumeration TestZZ_03.mq5 77 78