ind1:=MACD(); pVal:=Peak(1,ind1,55); tVal:=Trough(1,ind1,55); pSince:=PeakBars(1,ind1,55); tSince:=TroughBars(1,ind1,55); pClose:=ExtFml("ForumDll.VarRef",C,pSince); tClose:=ExtFml("ForumDll.VarRef",C,tSince); TheDiff:=pClose-tClose; TheDiff