Momentum written in Pine
You are able to change the source with this.
You are able to change the source with this.
study(title="MaxW's Pine Momentum", shorttitle="Momentum", overlay=false) accuracy = input(1, minval=1, title="Estimate") dsrc = input(close, title="Derivative Source") slope = (dsrc - dsrc[accuracy]) / accuracy plot(slope)