Bibliotecas: SmoothAlgorithms - página 2

 

Essa Lib tem alguns problemas.

Seria possível corrigi-los?


'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
 

Aqui está uma versão funcional.

Arquivos anexados:
 
Otto Pauser:

Aqui está uma versão funcional.

Muito obrigado, funcionou muito bem.
 
Nikolay Kositsin :

Não cometo nenhuma violação no trabalho do código e em sua compilação. É completamente incompreensível, do que se trata?

Olá, Nikolay.


Recebi erros com a classe, como você pode ver na imagem abaixo.

Você pode resolver isso para nós?

Tenho 4 indicadores que usam essa classe, mas ela não funciona.


 
Charles Magno:

Oi, Nikolay.


Recebi erros com a classe, como você pode ver na imagem abaixo.

Você pode resolver isso para nós?

Tenho 4 indicadores que usam essa classe, mas ela não funciona.


Mova esse 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
     };

para fora do escopo da classe CXMA (basta cortar e colar na frente dele).

 

Não consigo usar um indicador que precise de smoothalgorithms. Adiciono esse arquivo à pasta include e coloco o indicador em arquivos de exemplo, mas eles nunca funcionam. Devo estar fazendo algo errado. Nesse artigo, não é explicado como usá-lo.

Há algum lugar que explique como implementá-lo?

 
Não consigo compilá-lo! Nenhum dos indicadores que dependem do smoothalgorithms também não pode ser compilado em meu sistema! Também fiz o download de outras fontes e nenhuma delas funciona.
 
O que eu fiz foi colocar o enum fora da classe e excluir o enum dentro dela.
 
TODOS os seus indicadores que precisam do SmoothAlgorithm não funcionam :(
 
cddventura:
O que eu fiz foi colocar o enum fora da classe e excluir o enum dentro dela.

Funcionou para mim, obrigado! A compilação de indicadores dependentes também funciona.

Recebi os mesmos erros, como...

'Smooth_Method' - declaração sem o tipo mql5

e etc.

O arquivo corrigido está anexado a este comentário.

Arquivos anexados: