volatility standard dev

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

volatility standard dev

Postby dlahyani » 03 Aug 2009

Hi,

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

Daniel

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Postby TJ » 03 Aug 2009

yes, there is a function called StvDev.

From your PLEditor,

Open> Study Type: select Function

you will see the function there.

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Postby TJ » 03 Aug 2009

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

Postby dlahyani » 04 Aug 2009

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

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Postby TJ » 04 Aug 2009

if you are not familiar with programming, you can start by

downloading the free ebook Getting Started with EasyLanguage from the web.

dlahyani
Posts: 24
Joined: 06 Feb 2007

Std.dev

Postby dlahyani » 04 Aug 2009

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

User avatar
Andrew Kirillov
Posts: 1589
Joined: 28 Jul 2005
Has thanked: 2 times
Been thanked: 31 times
Contact:

Postby Andrew Kirillov » 13 Aug 2009

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


Return to “MultiCharts”