Libraries: SmoothAlgorithms - page 2

 

This Lib has some problems.

Would it be possible to fix them?


'SmoothAlgorithms.mqh'  SmoothAlgorithms.mqh    1       1
'Smooth_Method' - declaration without type      SmoothAlgorithms.mqh    537     18
'Method' - comma expected       SmoothAlgorithms.mqh    537     32
'Method' - undeclared identifier        SmoothAlgorithms.mqh    540     11
'Method' - illegal switch expression type       SmoothAlgorithms.mqh    540     11
'MODE_SMA_' - undeclared identifier     SmoothAlgorithms.mqh    542     12
'MODE_SMA_' - constant expression is not integral       SmoothAlgorithms.mqh    542     12
'MODE_EMA_' - undeclared identifier     SmoothAlgorithms.mqh    543     12
'MODE_EMA_' - constant expression is not integral       SmoothAlgorithms.mqh    543     12
'MODE_SMMA_' - undeclared identifier    SmoothAlgorithms.mqh    544     12
'MODE_SMMA_' - constant expression is not integral      SmoothAlgorithms.mqh    544     12
'MODE_LWMA_' - undeclared identifier    SmoothAlgorithms.mqh    545     12
'MODE_LWMA_' - constant expression is not integral      SmoothAlgorithms.mqh    545     12
'MODE_JJMA' - undeclared identifier     SmoothAlgorithms.mqh    546     12
'MODE_JJMA' - constant expression is not integral       SmoothAlgorithms.mqh    546     12
'MODE_JurX' - undeclared identifier     SmoothAlgorithms.mqh    547     12
'MODE_JurX' - constant expression is not integral       SmoothAlgorithms.mqh    547     12
'MODE_ParMA' - undeclared identifier    SmoothAlgorithms.mqh    548     12
'MODE_ParMA' - constant expression is not integral      SmoothAlgorithms.mqh    548     12
'MODE_T3' - undeclared identifier       SmoothAlgorithms.mqh    549     12
'MODE_T3' - constant expression is not integral SmoothAlgorithms.mqh    549     12
'MODE_VIDYA' - undeclared identifier    SmoothAlgorithms.mqh    550     12
'MODE_VIDYA' - constant expression is not integral      SmoothAlgorithms.mqh    550     12
'MODE_AMA' - undeclared identifier      SmoothAlgorithms.mqh    551     12
'MODE_AMA' - constant expression is not integral        SmoothAlgorithms.mqh    551     12
'MODE_EMA_' - case value already used   SmoothAlgorithms.mqh    543     12
'MODE_SMMA_' - case value already used  SmoothAlgorithms.mqh    544     12
'MODE_LWMA_' - case value already used  SmoothAlgorithms.mqh    545     12
'MODE_JJMA' - case value already used   SmoothAlgorithms.mqh    546     12
'MODE_JurX' - case value already used   SmoothAlgorithms.mqh    547     12
'MODE_ParMA' - case value already used  SmoothAlgorithms.mqh    548     12
'MODE_T3' - case value already used     SmoothAlgorithms.mqh    549     12
'MODE_VIDYA' - case value already used  SmoothAlgorithms.mqh    550     12
'MODE_AMA' - case value already used    SmoothAlgorithms.mqh    551     12
'MODE_SMMA_' - case value already used  SmoothAlgorithms.mqh    544     12
'MODE_LWMA_' - case value already used  SmoothAlgorithms.mqh    545     12
'MODE_JJMA' - case value already used   SmoothAlgorithms.mqh    546     12
'MODE_JurX' - case value already used   SmoothAlgorithms.mqh    547     12
'MODE_ParMA' - case value already used  SmoothAlgorithms.mqh    548     12
'MODE_T3' - case value already used     SmoothAlgorithms.mqh    549     12
'MODE_VIDYA' - case value already used  SmoothAlgorithms.mqh    550     12
'MODE_AMA' - case value already used    SmoothAlgorithms.mqh    551     12
'MODE_LWMA_' - case value already used  SmoothAlgorithms.mqh    545     12
'MODE_JJMA' - case value already used   SmoothAlgorithms.mqh    546     12
'MODE_JurX' - case value already used   SmoothAlgorithms.mqh    547     12
'MODE_ParMA' - case value already used  SmoothAlgorithms.mqh    548     12
'MODE_T3' - case value already used     SmoothAlgorithms.mqh    549     12
'MODE_VIDYA' - case value already used  SmoothAlgorithms.mqh    550     12
'MODE_AMA' - case value already used    SmoothAlgorithms.mqh    551     12
'MODE_JJMA' - case value already used   SmoothAlgorithms.mqh    546     12
'MODE_JurX' - case value already used   SmoothAlgorithms.mqh    547     12
'MODE_ParMA' - case value already used  SmoothAlgorithms.mqh    548     12
'MODE_T3' - case value already used     SmoothAlgorithms.mqh    549     12
'MODE_VIDYA' - case value already used  SmoothAlgorithms.mqh    550     12
'MODE_AMA' - case value already used    SmoothAlgorithms.mqh    551     12
'MODE_JurX' - case value already used   SmoothAlgorithms.mqh    547     12
'MODE_ParMA' - case value already used  SmoothAlgorithms.mqh    548     12
'MODE_T3' - case value already used     SmoothAlgorithms.mqh    549     12
'MODE_VIDYA' - case value already used  SmoothAlgorithms.mqh    550     12
'MODE_AMA' - case value already used    SmoothAlgorithms.mqh    551     12
'MODE_ParMA' - case value already used  SmoothAlgorithms.mqh    548     12
'MODE_T3' - case value already used     SmoothAlgorithms.mqh    549     12
'MODE_VIDYA' - case value already used  SmoothAlgorithms.mqh    550     12
'MODE_AMA' - case value already used    SmoothAlgorithms.mqh    551     12
'MODE_T3' - case value already used     SmoothAlgorithms.mqh    549     12
'MODE_VIDYA' - case value already used  SmoothAlgorithms.mqh    550     12
'MODE_AMA' - case value already used    SmoothAlgorithms.mqh    551     12
'MODE_VIDYA' - case value already used  SmoothAlgorithms.mqh    550     12
'MODE_AMA' - case value already used    SmoothAlgorithms.mqh    551     12
'MODE_AMA' - case value already used    SmoothAlgorithms.mqh    551     12
69 error(s), 0 warning(s)               70      1
 

Here is a working version.

Files:
 
Otto Pauser:

Here is a working version.

Thank you very much, it worked wonderfully.
 
Nikolay Kositsin :

I do not commit any violations in the work of the code and in its compilation at all. It's completely incomprehensible what is it about?

Hi, Nikolay.


I got erros with the class, like you can see in below picture.

Can you solve it for us?

I have 4 indicators using this class, but, it doesn't work.


 
Charles Magno:

Hi, Nikolay.


I got erros with the class, like you can see in below picture.

Can you solve it for us?

I have 4 indicators using this class, but, it doesn't work.


Move this enum:

   enum Smooth_Method
     {
      MODE_SMA_,  //SMA
      MODE_EMA_,  //EMA
      MODE_SMMA_, //SMMA
      MODE_LWMA_, //LWMA
      MODE_JJMA,  //JJMA.
      MODE_JurX,  //JurX
      MODE_ParMA, //ParMA
      MODE_T3,     //T3
      MODE_VIDYA,  //VIDYA
      MODE_AMA     //AMA
     };

out of the class CXMA scope (just cut and paste in front of it).

 

I can not ever use an indicator that needs smoothalgorithms. I add that file to include folder and put the indicator in example files but they never work. I must be doing something wrong. On that article it is not explained how to use it.

Is there a place that explains how to implement it?

 
i cannot compile it! non of indicatores that depend on smoothalgorithms cannot be compiled on my system too! i downloaded it from other sources too and none of them works, can someone help me please?
 
What  I did was place the enum outside the class and deleted the enum inside. quick fix but I believe it should be addressed.
 
ALL of your indicator that need SmoothAlgorithm doesn't work :(
 
cddventura:
What  I did was place the enum outside the class and deleted the enum inside. quick fix but I believe it should be addressed.

worked for me, thanks! compilation of depended indicators work too.

got same errors like..

'Smooth_Method' - declaration without type mql5

and etc.

fixed file is attached to this comment.

Files: