Momentum
All functions · nseries package
Momentum
func (s Series) Momentum(n int) Series
Momentum returns a series calculated as the difference between the current price and the price n bars ago,
The warm-up reads 0, not NaN: bars 0 to n-1 are 0, no change.