VOLATILITY, DISPERSION & CANDLES
Percent rank
Where today's value sits against its own recent history, as a 0-100 percentile.
spec id: pctranklength (default 20)
What does Percent rank measure?
Where today's value sits against its own recent history, as a 0-100 percentile. 95 means it is higher than 95% of the window.
How is Percent rank calculated?
Look at the last 20 closes and count what share of them are below today's. 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 Percent rank in a bot?
In the builder, add an indicator of type pctrank (parameters: length, default 20). 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
- High-low rangeHow tall the candle was, top to bottom.
- SkewnessWhether recent prices lean up or down around their own average.
- STARC bandsA price channel built on a short average with volatility-scaled edges — traditionally used to judge whether a breakout is worth chasing.
- Std deviationHow spread out prices have been — the raw, unscaled volatility number that Bollinger Bands are built from.
Or browse all 158 indicators in the full library.