OPEN-SOURCE SCRIPT

Carrey's Velocity and Acceleration

Updated
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.
Release Notes
Updates
Release Notes
Changed acceleration plot to be histogram for easier viewing and understanding
Release Notes
Added quick MA settings
Release Notes
Distribution and Cluster signals now show proper directionality as previous configuration was only temporary (as well as misleading).
Release Notes
Added feature to clear up repeated Cluster/Distribution signals.
Release Notes
Typo correction
Release Notes
Identifies crosses beyond extrema and requires a cluster to be inside of extrema
Release Notes
Added in OBV and OBV Speed element
Release Notes
Bug fix
Release Notes
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.
Release Notes
Added Avg OBV Scale for visual control
Release Notes
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

Open-source script

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.

Want to use this script on a chart?

Disclaimer