# Standard deviation

## Description <a href="#description" id="description"></a>

Standart deviation indicator statisticy measures the dispersion of a price relative to its mean(mathemetical expectation) and is calculated as the square root of the variance. It is widely used in finance and trading regardless of asset class or market. For example, if trader calculates a standard deviation of his performance report as the result he will receive the measurement of volatility of his balance and equity, the higher STD means the he can expect bigger drawdown.

In case of price movement, higher STD means higher volatility of an instrument, for example if we compare two assets, the asset with higher standard deviation will be more risky for an investment.

![](https://1239679454-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LYX3ccu0Q61og0sdCbP%2F-Lt4f5XUyWUbILd7oY_y%2F-Lt4f9Xtpvv-i3tzwJHF%2Fimage%20\(19\).png?generation=1573126975420344\&alt=media)

## Formula

![](https://1239679454-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LYX3ccu0Q61og0sdCbP%2F-Lt4f5XUyWUbILd7oY_y%2F-Lt4f9XwOep8i3_wCCtg%2Fimage%20\(16\).png?generation=1573126976250607\&alt=media)

Where:\
**N** - period of calculation(number of observations)\
**x** - price value

## Most useful cases <a href="#most-useful-cases" id="most-useful-cases"></a>

* **Volatility measurement** - the most usefull case of STD usage is to determing a statistical volatility, understanding of this value is very usefull to find best positions of potential stop loss and take profit levels. It protects existing positions of small price fluctuations and random breakout of levels.&#x20;
* **Divergence/Convergence** - Divergence/Convergence pattern is a form of price action when new high(low) of the price not confirmed with a new high of STD. This is a very good approach to find a weakness of existing trend.

![](https://1239679454-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LYX3ccu0Q61og0sdCbP%2F-Lt4f5XUyWUbILd7oY_y%2F-Lt4f9Xy6YWQPbj6pD4I%2Fimage%20\(17\).png?generation=1573126976775628\&alt=media)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.quantower.in/analytics-panels/chart/technical-indicators/volatility/standard-deviation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
