MetaStock -> Tools -> Indicator Builder -> New Copy and paste formulae below. =========== RoC of MACD =========== ---8<--------------------------- { RoC of MACD-type indicator - v2.0 ©Copyright 2006 Jose Silva. The grant of this license is for personal use only - no resale or repackaging allowed. All code remains the property of Jose Silva. http://www.metastocktools.com } { User inputs } pds1:=Input("Smaller EMA periods 1",1,260,15); pds2:=Input("Larger EMA periods 2",1,260,25); pds3:=Input("RoC periods",1,260,5); norm:=Input("Normalize? [1]Yes, [0]No",0,1,1); { RoC of MACD } x:=ROC(Mov(C,pds1,E)/Mov(C,pds2,E),pds3,$); { Normalize } y:=(x-Lowest(x)) /Max(Highest(x)-Lowest(x),.000001)*100; { Select Raw/Normalized RoC } RoCmac:=If(norm,y,x); avg:=Cum(RoCmac)/Cum(IsDefined(RoCmac)); { Automatic OverBought/Sold levels } pk:=Ref(RoCmac,-1)=HHV(RoCmac,3) AND Ref(RoCmac,-1)>avg; pk1:=ValueWhen(1,pk,Ref(RoCmac,-1))*pk; oBought:=Cum(pk1)/Cum(pk); tr:=Ref(RoCmac,-1)=LLV(RoCmac,3) AND Ref(RoCmac,-1)