Discussion of article "Advanced Adaptive Indicators Theory and Implementation in MQL5"

 

New article Advanced Adaptive Indicators Theory and Implementation in MQL5 is published:

This article will describe advanced adaptive indicators and their implementation in MQL5: Adaptive Cyber Cycle, Adaptive Center of Gravity and Adaptive RVI. All indicators were originally presented in "Cybernetic Analysis for Stocks and Futures" by John F. Ehlers.

Author: investeo

 
Hello,

Using Meta Trader 5.0 build 489, I can not visualize the 3 adaptive indicators. Normal indicators (non adaptive) are displayed correctly.
Could you help me ?
Thanks in advance.

Blueyes
 
Which indicatores do you mean?
 
I can not see :
adaptivecenterofgravity.mq5
adaptivecybercycle.mq5
adaptivervi.mq5

Thanks
 
blueyes:
I can not see :
adaptivecenterofgravity.mq5
adaptivecybercycle.mq5
adaptivervi.mq5

Thanks

These indicators demand for calculation the other indictor - CyclePeriod.mq5. Check whether you have that and see Journal in the client terminal.

int hCyclePeriod;

input double InpAlpha=0.07; // alpha
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int OnInit()
  {
//--- indicator buffers mapping 
   ArraySetAsSeries(Cycle,true);
   ArraySetAsSeries(Trigger,true);
   ArraySetAsSeries(Smooth,true);

   SetIndexBuffer(0,Cycle,INDICATOR_DATA);
   SetIndexBuffer(1,Trigger,INDICATOR_DATA);

   PlotIndexSetDouble(0,PLOT_EMPTY_VALUE,0.0);
   PlotIndexSetDouble(1,PLOT_EMPTY_VALUE,0.0);

   hCyclePeriod=iCustom(NULL,0,"CyclePeriod",InpAlpha);
   if(hCyclePeriod==INVALID_HANDLE)
     {
      Print("CyclePeriod indicator not available!");
      return(-1);
     }

   return(0);
  }
//+-
Double Exponential Moving Average (DEMA)
  • votes: 8
  • 2010.02.03
  • MetaQuotes Software Corp. | English Russian Chinese Spanish Portuguese
  • www.mql5.com
It is used for smoothing price series and is applied directly on a price chart of a financial security.
 
CyclePeriod.mq5 is located in ./MQL5/Indicators.
No compilation errors or warnings of the file.
When I am looking for CyclePeriod.ex5 file, I can not find it on my local disk ?
 
I find the issue=> it is OK now
 
Could you please rewrite this indictor on MT5
Files:
SupDem_5z_1.mq4  11 kb
 
liked the flash drive.)
 
ivan.berezhnuy:
Could you please rewrite this indictor on MT5?
You're in the work section.
Как заказать торгового робота на MQL5 и MQL4
Как заказать торгового робота на MQL5 и MQL4
  • 2010.06.18
  • MetaQuotes Software Corp.
  • www.mql5.com
С запуском сервиса "Работа" MQL5.community становится идеальным местом для размещения заказов и оказания услуг программирования. Тысячи трейдеров и разработчиков ежедневно посещают этот ресурс и с легкостью могут помочь друг другу. Для трейдера сервис "Работа" - это легкая возможность получить свой собственный эксперт. Для MQL5-разработчика это возможность легко найти новых клиентов. В данной статье мы рассмотрим возможности этого сервиса.
 

The indicators should be one of the best indicators written in MQL5. As a beginner  for C++ and newcomer for MQL5, some of your codes give difficulty to me when I replicate it into C++.. For example C++ doesn't have isStopped()..

 

 Is there any easier way of porting your code into C++?, specially code for adaptive cycle function