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

Or browse all 158 indicators in the full library.

Build a bot that trades on Coeff of variation — the first backtest is free.

Run a free backtest