Discussion of article "Averaging Price Series for Intermediate Calculations Without Using Additional Buffers" - page 3

 

Great indicators. We know them from MT4, but when compiling in MT5 it gives a lot of errors. Build MT5 2280. How to fix it? Thanks in advance.

 

Similar problem. MT5 build 2317.

Nameless.png.

 
Compiling in MT4 is successful. That's strange.
 

I wonder if there is a branch on the site directly related to compilation

 
Similar problem. MT5 build 2361.
 

The problem is solved, all you have to do is take the enumeration out....

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
     }; 
     
     
//+X================================================================X+
//| calculation of the minimum number of required bars of the XMA algorithm |
//+X================================================================X+ 
int GetStartBars(Smooth_Method Method,int Length,int Phase)
 
LexTon:

The problem is solved, all you have to do is take the enumeration out....

Tell me, if it is not difficult, should and can these changes be made in any place of the indicator code? Or is it still preferable to put this enumeration at the end of the code? Thank you!
 
LexTon:

The problem is solved, all you have to do is take the enumeration out....

I got this result. I inserted it into line 41. I got three compilation errors: '#property' - semicolon expected SmoothAlgorithms.mqh 7 1'; 'FastMethod' - cannot convert enum RAVI.mq5 197 64; 'SlowMethod' - cannot convert enum RAVI.mq5 198 64. This is the result so far.



 
Nikolay Kositsin #:
OK! I've got it!

How ?

 
good article