[amibroker] Re: statistical volatility function

 

so many different ways to achieve same goal.


For me, usually the standard measure of historical volatility (HV) is a simple 20 or 30 day, annualized percentage volatility equation.

// Historical Volatility 

LBperiod = Param("Periods",30,10,500,1); 

HV = 100 * StDev(log(C/Ref(C,-1)), LBperiod) * sqrt(252);

Plot(HV, "HV("+LBperiod +")", ParamColor( "Color", colorRed ), ParamStyle("Style")  );

Others prefer stock market measures of volatility like ATR or Standard Deviation
Larry

__._,_.___

Posted by: portfoliobuilder99@gmail.com
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (7)
**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/


.

__,_._,___

Related Posts


EmoticonEmoticon

:)
:(
=(
^_^
:D
=D
=)D
|o|
@@,
;)
:-bd
:-d
:p
:ng
:lv