程序库: SmoothAlgorithms - 页 2

 

这个 Lib 有一些问题。

有可能修复它们吗?


'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
 

这是一个工作 版本。

附加的文件:
 
Otto Pauser:

这是一个工作版本。

非常感谢,效果非常好。
 
Nikolay Kositsin :

我在代码工作和编译过程中没有任何违规行为。完全无法理解,这到底是怎么回事?

你好,尼古拉。




你能帮我们解决这个问题吗?

我有 4 个指标使用了这个类,但它不起作用。


 
Charles Magno:

你好,尼古拉




你能帮我们解决这个问题吗?

我有 4 个指标使用了这个类,但是,它不起作用。


将这个枚举

   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,  //维迪亚
      MODE_AMA     //AMA
     };

移出类 CXMA 的范围(在其前面剪切并粘贴即可)。

 

我无法使用需要 smoothalgorithms 的指标。我将该文件添加到 include 文件夹中,并将指标放入示例文件中,但它们从来都不起作用。我一定是做错了什么。那篇文章没有解释如何使用它。

有没有地方可以解释如何使用它?

 
我无法编译它!在我的系统上,所有依赖于 smoothalgorithms 的指示器都无法编译!我还从其他来源下载了它,但都无法运行,谁能帮帮我?
 
我的做法是将枚举放在类外,然后删除类内的枚举。虽然解决方法很快,但我认为应该解决这个问题。
 
所有 需要使用 SmoothAlgorithm 的指标都不起作用 :(
 
cddventura:
我的做法是将枚举放在类外,然后删除类内的枚举。

对我有用,谢谢!编译依赖指标也成功了。

我也遇到了同样的错误,比如

Smooth_Method' - 声明中没有 mql5 类型

等错误。

修正后的文件附在本评论后面。

附加的文件: