Standard Deviation
By LuxAlgoApr 13, 2020
Standard Deviation computes the standard deviation of a selected price source over a lookback window and plots it as a single line, quantifying how far prices deviate from their mean so traders can watch volatility expand and contract directly. Defaults are a length of 20 on the closing price. This is the plain statistical measure in its raw form (no bands, no smoothing, no overlays), and that austerity is the appeal: the line rises when moves get larger, falls when the market tightens, nothing else.
How to Trade the Standard Deviation?
- Rising line: dispersion is expanding; bars are traveling farther from their recent mean, the signature of an active or trending tape.
- Falling line: contraction; price is coiling around its average and the market is going quiet.
- Extreme low readings: compression phases that squeeze-style traders monitor as the base conditions from which expansions are anticipated.
- Extreme high readings: dispersion at its widest, typical of climactic sessions, news shocks, or capitulation bars.
- No directional content: the line is unsigned: identical readings can accompany a surge or a collapse, so direction must come from another tool.
Because the value is denominated in price units, its absolute size scales with the instrument's price level; compare readings against the same symbol's own history rather than across markets.
Standard Deviation Settings
- Length (default 20): the number of bars used to compute the standard deviation. Shorter windows react quickly to a single large bar and fade just as fast; longer windows describe the prevailing volatility regime.
- Source (default close): the price series the standard deviation is calculated on.
Frequently Asked Questions
Free on Vela
Run it on Vela. Go further with a paid plan.
- Up to 500 strategy alerts, with webhook automation
- Up to 10× the chart history of Free
- Orderflow lookback up to full history
- Up to 100,000 monthly credits for Quant to customize it
- Futures data alongside crypto, stocks, forex and commodities
Run it on Vela. Make it yours with Quant.
Open this indicator free on Vela, our next-generation charting platform. Then ask Quant, our coding agent built into Vela, to retune it or turn it into a backtested strategy of your own.

