VOLATILITY, DISPERSION & CANDLES
Coeff of variation
Volatility measured relative to price level, so a $10 stock and a $500 stock can be compared fairly.
spec id: cvlength (default 20)
What does Coeff of variation measure?
Volatility measured relative to price level, so a $10 stock and a $500 stock can be compared fairly.
How is Coeff of variation calculated?
Take the standard deviation of the last 20 closes, divide it by the average of those same closes, and express it as a percentage.
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 Coeff of variation in a bot?
In the builder, add an indicator of type cv (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
- DrawdownHow far below its recent peak the stock is trading, in percent.
- Historical volHow volatile the stock has been, stated the way options traders state it: an annual percentage.
- KurtosisHow prone the stock has been to sudden jumps.
- Lower shadowThe wick hanging below the candle's body — how far sellers pushed before buyers took it back.
Or browse all 158 indicators in the full library.