MetaStock -> Tools -> Indicator Builder -> New Copy and paste formula below. =========================== RSI, sine-weighted smoothed =========================== ---8<-------------------------------- { Smoothed RSI indicator v1.1 } { Internal sine-weighted smoothing } { Automatic historically-valid RSI peak/trough boundaries} { Boundary crossover signals: +1=Long, -1=Short} { ©Copyright 2004 Jose Silva } { http://www.metastocktools.com } { user input } pds:=1/Input("RSI periods",1,2520,10); plot:=Input("plot: [1]-RSI, [2]-Long/Short signals",1,2,1); { RSI up/down average components } x:=If(C>Ref(C,-1),C-Ref(C,-1),0); y:=If(CRef(RS,-2) AND Ref(RS,-1)>RS AND Alert(Ref(C,-1)>Ref(C,-2) AND Ref(C,-1)>C,2) {AND Ref(RS,-1)>50}; pkVal:=ValueWhen(1,pk,Ref(RS,-1)); pkAvg:=Cum(pkVal)/Cum(pkVal>-1); tr:=Ref(RS,-1)-1); { RSI peak/trough boundary cross signals } up:=Cross(trAvg,RS); dw:=Cross(RS,pkAvg); signals:=up-dw; { alternative RSI peak/trough signals } {up:=Ref(RS,-1)Ref(RS,-2) AND Ref(RS,-1)>RS AND Ref(RS,-1)>pkAvg; signals:=up-dw;} { plot } If(plot=1,pkAvg,0); If(plot=1,trAvg,0); If(plot=1,RS,signals) ---8<-------------------------------- http://www.metastocktools.com