VIDYA indicator Conversion from MQL5 to MQL4

 

I fail to convert the Vidya MQL5 indicator  https://www.mql5.com/en/code/75  to MQL4.

I endup with no compilation error but indicator does not display on chart.

Please note that the MQL4 indicator https://www.mql5.com/en/code/9191is an old version which does not include the Chande oscilator.

Attached is my modified version.

Can any one help?

Thanks very much for your assistance.


JPD

 
Google and you'll find some..
 
Tks for reply. I know it is rare not to find on Google, but haven't seen a MQL4 ver with the CMO
 

@JPD

There is a nice include file (library) which has a class for vidya/CMO smoothing. Check it out here: https://www.mql5.com/en/code/download/541/smoothalgorithms.mqh

 
Thank you very much
Reason: