I compared different techniques to get momentum of the series.
The 4 samples are: 1) Raw difference between price and price some bars ago 2) Built-in "change" function 3) Built-in "mom" function 4) Jedi's momentum - difference between current and previous SMA multiplied by it's period
All results are identical.
So, we have two built-in functions that do the same thing: "change" and "mom". For brevity it is better to use "mom" when you need to get momentum of the series.
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.
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.