OPEN-SOURCE SCRIPT

S.a.r. Momentum Differene

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")
differeneMomentum Indicator (MOM)

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer