MOMENTUM & OSCILLATORS
ROC ratio
Today's price as a multiple of what it was.
spec id: rocrlength (default 12)
What does ROC ratio measure?
Today's price as a multiple of what it was. 1.05 means up 5%, 0.95 means down 5%.
How is ROC ratio calculated?
Divide today's close by the close from 12 candles ago.
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 ROC ratio in a bot?
In the builder, add an indicator of type rocr (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 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.
- Relative vigor indexIs the close finishing strong inside its candle?
- Stochastic momentumA stochastic that measures distance from the MIDDLE of the range rather than the bottom, so it swings around zero instead of 50.
Or browse all 158 indicators in the full library.