MetaStock -> Tools -> Indicator Builder -> New -> Copy and paste complete formula between "---8<---" lines. ============== Stepped output ============== ---8<-------------------------- { Stepped Price/Indicator output v2.0 } { ©Copyright 2005 Jose Silva For personal use only http://www.metastocktools.com } { Data array or indicator to quantize } x:=C; { User inputs } step:=Input("Step size",0,10000,0.5); type:=Input("Step type: [1]$points, [2]%percentage",1,2,1); { Step size } step:=Max(If(type=1,step, LastValue(x*(step/100))),.00001); { Stepped data array } stepX:=Int(x/step+.5)*step; { Plot on price chart or own window } stepX ---8<-------------------------- http://www.metastocktools.com