Indicators: Keltner Channel - page 2

 
Hello!!! I'm trying to copy. But I get 33 errors. Does anyone know how to solve this?
 
hi mate, with this indicator I can use the simple moving average...?
 

I have a  problem to add this indicator to mt5. after adding two files to their specified folders, it has not shown in mt5 indicator lists. So I tried to compile the mq5 file and it gave me 33 errors.

Please reconsider the source code. It seems there must be some problems.

Thanks.

 

Danieldfs, could you explain it a little better for the layman? what has to be changed on line 2875? Change what for what?

 

Hello guys, there is a mistake in the code (file .mqh), in order to fix it, following the steps below:

1. Open file SmoothAlgorithms.mqh in MetaEditor
2. Ctrl + F -> Find "Smooth_Method" 
3. Copy enum data type "Smooth_Method" out of class "class CXMA":
Roughly speaking: copy the code (which looks like code below) from inside of "class CXMA" and paste on the line 17 or somewhere outside of "class CXMA"

  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
      };
4. Done.

 

thanks  Nikolay Kositsin  and  leminhtuong721.

It work good now. 

Nikolay Kositsin
Nikolay Kositsin
  • 2021.06.24
  • www.mql5.com
Trader's profile