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: 6523
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 957 times
Been thanked: 1883 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: 6523
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 957 times
Been thanked: 1883 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: 6523
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 957 times
Been thanked: 1883 times

Postby TJ » 04 Aug 2009

if you are not familiar with programming, no amount of my simple explanation would help.

you can take comfort in my "complicated" message that what you want can be done.
p.s. with the power and flexibility of MultiCharts, virtually any numeric analysis that you can dream of, can be done.

if you are not familiar with programming, you can start here:
http://www.tssupport.com/support/tutorials/

download Getting Started with EasyLanguage in the right hand column.

when you are ready, these threads might help:

spread charts
http://www.tssupport.com/forum/viewtopic.php?t=6559

A True Composite Symbol for Multicharts
http://www.traderslaboratory.com/forums ... -6372.html


enjoy!

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”