OPEN-SOURCE SCRIPT

[RESEARCH] Momentum

3 110
Hello traders and developers!

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.

Good luck!

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。