# volatility standard dev

Questions about MultiCharts and user contributed studies.
dlahyani
Posts: 24
Joined: 06 Feb 2007

### volatility standard dev

Hi,

is it possible to plot a standard deviation on an indicator?

Daniel

TJ
Posts: 7372
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 996 times
Been thanked: 2105 times
yes, there is a function called StvDev.

Open> Study Type: select Function

you will see the function there.

TJ
Posts: 7372
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 996 times
Been thanked: 2105 times
StdDev (Function)

The StdDev function calculates a standard deviation of a population of values.

Syntax

StdDev( Price, Length )

Returns (Double)

A numeric value containing the current standard deviation.

Parameters

Price Numeric

Specifies which bar value (price, function, or formula) to be considered.

Length Numeric

Sets the number of bars to be considered.

Remarks

To find the standard deviation,
first find the variance and then take its square root.

Example

Assigns to Value1 the standard deviation of Close over 10 bars.

Value1 = StdDev(Close, 10);

dlahyani
Posts: 24
Joined: 06 Feb 2007

### Std.dev

thanks TJ,

what I need is to plot the std deviation of a spread ratio.
you're explanation seem simple but I'm not familiar with programing.

Daniel

TJ
Posts: 7372
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 996 times
Been thanked: 2105 times
if you are not familiar with programming, you can start by

dlahyani
Posts: 24
Joined: 06 Feb 2007

### Std.dev

hey TJ,

thank you for your education but I have no plans to dig into programming.
I was thinking MC could do that by default.

Best/Daniel

Andrew Kirillov
Posts: 1589
Joined: 28 Jul 2005
Has thanked: 2 times
Been thanked: 31 times
Contact:
Daniel,
It is really simple:
Just add custom 1 line indicate and insert this as a custom formula:

StandardDev (Average(Close,10),10,1)

It plots Std dev for moving average