MetaStock -> Tools -> Indicator Builder -> New -> copy & paste formulae below. ================== Signal accumulator ================== ---8<----------------------------------------- { Accumulates OBV/Volume (or any other values) between & including two user-input dates. http://www.metastocktools.com } { Value to accumulate - OBV } x:=If(C>Ref(C,-1),V,If(CStYear OR (Year()=StYear AND (Month()>StMnth OR Month()=StMnth AND DayOfMonth()>=StDay)); end:=Year()0 OR init,start); start:=flag*(Alert(flag=0,2) OR start*Cum(start)=1); end:=(flag=0)*(Alert(flag,2) OR end*Cum(end)=1); { Accumulate values } acc:=Cum(flag*value); accVal:=acc-ValueWhen(1,end,acc); { Plot in own window } If(plot=1,accVal,start-end) ---8<----------------------------------------- http://www.metastocktools.com