Thread: Moving Average
View Single Post
  #11 (permalink)  
Old 03-31-2006, 09:18 AM
newdigital newdigital is online now
Administrator
 
Join Date: Sep 2005
Posts: 15,777
Blog Entries: 27
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
I fixed some bug in the code of this well-known indicator and slightly modify it.

Now you have colour changing moving average:

period of ma:
MAPeriod = 50;

MA Method:
PeriodMode = 1; //0=sma, 1=ema, 2=smma, 3=lwma
Attached Files
File Type: mq4 Three_Color_ma.mq4 (2.8 KB, 562 views)
Reply With Quote