Macd Based on Sma Please . . .

 

Please can any one convert this source code (Ema Macd) into  (Sma Macd) 

 I tried  do it by replace every "ema" to "sma"  But this cause a result of not Auto Updating indicator ..

I have to Reload the Page every Neo candle in order to work Right ..


But its Realy noisy to Refresh every when using 1 Minite Chart # ..


Can any One Help Guys . . . It will be Very Appreciated (:

Files:
SmaMacd.mq5  7 kb
 

First rename your files - to be on the save side!

Then just search and replace SMA (only capitals) by EMA.

After that recompile your file.

But this works only here normally it's not so easy.

 
erwe22: Please can any one convert this source code (Ema Macd) into  (Sma Macd)  I tried  do it by replace every "ema" to "sma"  But this cause a result of not Auto Updating indicator ..I have to Reload the Page every Neo candle in order to work Right .. But its Realy noisy to Refresh every when using 1 Minite Chart # .. Can any One Help Guys . . . It will be Very Appreciated (:

Unfortunately it will not be as simple as just changing the text from "EMA" to "SMA".

The code also makes use of the "MovingAverages.mqh" include file, and the function "ExponentialMAOnBuffer".

So you will have to change it to make use of the "SimpleMAOnBuffer" instead.

 

THANK YOU Carl Schreiber ,,

THANK YOU Fernando Carreiro . . .


Thank You Guys for Your Generous Feed Back ,, May be it is easy for You To post , But it is Really important for Me to know these Bits ...


Thank You Again and Agian , Your Feed back Guys Worth Money  . .  Stay Blessed :)

Reason: