OPEN-SOURCE SCRIPT

Carrey's Velocity and Acceleration

已更新
This is initially based on the MA Speed indicator from TradeStation (tradingview.com/v/4j9HWCVA/) and expanded upon greatly. This implements 3 different variable MAs and calculates and plots both speed and acceleration of each. Also, a single line composite option is included for both speed and acceleration that changes color based on directional confluence of each MA's speed/acceleration. Additionally, optional labels are included to show where the 3 MAs are clustered, and a volatile move is expected, and where they are more distributed, expecting a temporary reversal.

The additional acceleration concept comes from kinematics in physics. Utilizing time-based derivatives, we can calculate the velocity and acceleration of the moving averages, which can help us identify momentum of price action and locate reversals sooner.
版本注释
Updates
版本注释
Changed acceleration plot to be histogram for easier viewing and understanding
版本注释
Added quick MA settings
版本注释
Distribution and Cluster signals now show proper directionality as previous configuration was only temporary (as well as misleading).
版本注释
Added feature to clear up repeated Cluster/Distribution signals.
版本注释
Typo correction
版本注释
Identifies crosses beyond extrema and requires a cluster to be inside of extrema
版本注释
Added in OBV and OBV Speed element
版本注释
Bug fix
版本注释
Please look at the tooltip for the OBV Average should you choose to use it. OBV Average is useful to normalize the OBV chart when using the other elements of this indicator. If not for this bug, OBV Avg would be the default setting. However, due to this bug, the OBV is a completely optional tool for the public to use (discover?) that encourages recognizing the significance of calibrating your particular indicator should you choose to use it how I intend to set the next default.
版本注释
Added Avg OBV Scale for visual control
版本注释
Removed OBV in favor of VFI as it yields more accurate results than what I was attempting. This is courtesy of our good friend Lazy Bear and you can find the original script for VFI at tradingview.com/script/MhlDpfdS-Volume-Flow-Indicator-LazyBear/
accelerationaverageExponential Moving Average (EMA)hullHull Moving Average (HMA)movingOscillatorsspeedvelocity

开源脚本

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

想在图表上使用此脚本?

免责声明