study(title="S.a.r. Momentum Differene", shorttitle="SMD")
len = input(10, minval=1, title="Length")
src = input(close, title="Source")
start = input(0.05)
increment = input(0.05)
maximum = input(0.1)
mom = src - src[len]
out = sar(start, increment, maximum)
smd = out - mom
plot(smd, color=red, title="SMD")