Discussion of article "Advanced Adaptive Indicators Theory and Implementation in MQL5"
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
adaptivecenterofgravity.mq5
adaptivecybercycle.mq5
adaptivervi.mq5
Thanks
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); } //+-
- votes: 8
- 2010.02.03
- MetaQuotes Software Corp. | English Russian Chinese Spanish Portuguese
- www.mql5.com
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 ?
Could you please rewrite this indictor on MT5?
- 2010.06.18
- MetaQuotes Software Corp.
- www.mql5.com
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?
New article Advanced Adaptive Indicators Theory and Implementation in MQL5 is published:
Author: investeo