Discussion of article "The ZigZag Indicator: Fresh Approach and New Solutions" - page 6

 
xy618z # :

zzH[h]=(MqlZigZag)zz[i]; h++; } else { & nbsp; zzL[l]=(MqlZigZag)zz[i];




cannot cast 'dextremum' to 'MqlZigZag' AdvancedZigZag.mqh 74 17 cannot cast 'dextremum' to 'MqlZigZag' AdvancedZigZag.mqh 79 17 Cannot read


I have the same exact problem. Did you manage to solve it?
 
there are errors on this code how do we sort this out thanks for such a brilliant ideathere are errors on the code anyway you can assist with this 
 

In order to fix   MqlZigZag error change the file advancedzigzag.mqh as show below, the right file is attached.



     MqlZigZag Nzz;

     Nzz.price = zz[i].value;

     Nzz.t = zz[i].time;

      if(zz[i].type>0)

        {

         zzH[h]=Nzz;

         h++;

        }

      else

        {

         zzL[l]=Nzz;

         l++;

        }
Files:
 
Livio Alves #:

In order to fix   MqlZigZag error change the file advancedzigzag.mqh as show below, the right file is attached.



Thank you for the quick fix, Livio Alves.

@ Sergey Pavlov, you have opened up another dimension of coding to me. Thank you to the extent of that dimension!

Sergey Pavlov
  • 2023.10.02
  • www.mql5.com
Trader's profile