VOLATILITY, DISPERSION & CANDLES

Historical vol

How volatile the stock has been, stated the way options traders state it: an annual percentage.

spec id: hvlength (default 20)

What does Historical vol measure?

How volatile the stock has been, stated the way options traders state it: an annual percentage. 40 means roughly a 40% swing a year at this pace.

How is Historical vol calculated?

Take the day-to-day logarithmic returns, measure how spread out the last 20 of them were, then scale that up to a year (multiplying by the square root of 252 trading days) and turn it into 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 Historical vol in a bot?

In the builder, add an indicator of type hv (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 Historical vol — the first backtest is free.

Run a free backtest