MOMENTUM & OSCILLATORS
Rate of change
The percentage change over a set stretch — the plainest momentum reading there is.
spec id: roclength (default 12)
What does Rate of change measure?
The percentage change over a set stretch — the plainest momentum reading there is.
How is Rate of change calculated?
Take today's close, subtract the close from 12 candles ago, divide by that old close, and multiply by 100.
Written by reading the engine’s real computation, not a textbook — where the two differ, the page describes what actually runs.
How do I use Rate of change in a bot?
In the builder, add an indicator of type roc (parameters: length, default 12). Its value becomes an operand you can compare in any entry or exit rule. The engine grades the whole rule honestly: real fills, no look-ahead, half the history held back.
Related indicators
- ROC percentThe same change as rate-of-change, but left as a fraction rather than a percentage (0.
- ROC ratioToday's price as a multiple of what it was.
- ROC ratio ×100The same ratio as rocr but scaled so 100 means unchanged — handy when you want one number that reads like an index.
- RSIA 0-100 meter for "overbought or oversold.
Or browse all 158 indicators in the full library.