animecummer

Momentum and Acceleration

animecummer 已更新   
The following oscillator is a twist on momentum, incorporating a 2nd derivative "acceleration" to help determine changes in momentum. Both are plotted directly accessing previous series values rather than using a moving average.

The script has an option to divide so the formula is d(Price)/d(Time), like a derivative. The script also provides options for the user to use their price source, volume, or a combination of price and volume.

Credit: This script utilizes the "color gradient framework" tutorial by LucF (PineCoders) to create user-adjustable gradient visuals.

Definitions
  • "1st Derivative - Momentum" - Momentum is most commonly referred to as a rate and measures the acceleration of the price and/or volume of a security.
  • "2nd Derivative - Acceleration" - Acceleration is the rate of change of momentum.

Value Added
  • This script may help the trader to assess directional changes in momentum easier.
  • This script also plots using previous series values rather than using a moving average function. To my knowledge, I was unable to find one that does this for "2nd derivative", so it had to be created.
版本注释:
3-Nov-21: added timeframe/gaps feature
开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?