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

 

I tried to separate them by adding 1 and 2 to their names. The previous error disappeared, but another error popped up......

When trying to compile TestZZ_03

'stop_time_in' - cannot convert enum TestZZ_03.mq5 77 78


This is how the functions look like now:

void GetZigZagData1(const double &zz_h[],const double &zz_l[],const datetime &time[]);

void GetZigZagData2(const int handle,int buffer_num_highs,int buffer_num_lows,

const string symbol,const ENUM_TIMEFRAMES period,

const datetime start_time,const datetime stop_time);


 
Sergey Voytsekhovsky:

I tried to separate them by adding 1 and 2 to their names. The previous error disappeared, but another error popped up.....

When trying to compile TestZZ_03

...

Loaded a slightly more recent version, and there were some additions.

It is necessary to specify indices of indicator buffers in the second and third parameter:

zz_current.GetZigZagData(zz_handle_current,h_buff,l_buff,_Symbol,_Period,start_time_in,stop_time_in);
 
Upload the code again using the old link, or is there a new one ?
 
Thanks for the prompt reply, and even on a weekend. Respect.
 
Sergey Voytsekhovsky:
Do you want to re-download the code from the old link, or is there a new one ?

I'm going to check everything again now and I may need to upload a new archive with the files. You'll have to wait.

 
OK, when we know what we can upload? Will you let me know?
 
Sergey Voytsekhovsky:
OK, when you know what you can upload? Will you let me know?

Yeah, I'll upload the archive here first.

 

Updated archive with corrected files.

Files:
Files.zip  20 kb
 

Downloaded a new archive, tried to compile TestZZ_03.mq5.

The result is the same. Error and reference to the same function, twice initiated by different parameters.

 
maybe I'm doing something wrong?