OPEN-SOURCE SCRIPT

ROC + dROC + d2ROC (with z-scores & percentiles)

85
This indicator measures how price momentum is changing — not just whether it’s rising or falling, but how quickly that change itself is accelerating or slowing. It starts with the Rate of Change (ROC), which shows how much price has moved over a set period. The first derivative (ΔROC) tracks how ROC is changing from bar to bar, and the second derivative (Δ²ROC) shows whether that change is speeding up or fading — essentially the “acceleration” of momentum. Positive Δ²ROC means momentum is strengthening; negative means it’s weakening. The script also quantifies how extreme those shifts are using z-scores and percentiles, helping spot Druckenmiller-style turning points where trends often begin or end.

Disclaimer

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.