MetaStock™ Zone Forum & FAQ Artykuły Linki Elliott Waves EasyLanguage™ Zone

A B C D E F G H I J K L M N O P R S T U V W Y Z #

Volatility Trade In Gold by David Landry
"A Volatility Trade In Gold" by David S. Landry, CTA, Technical Analysisof Stocks & Commodities, page 87.

In this article the author gives formulas for three indicators MetaStock. The formulas as given will work in all versions of MetaStock.However, there is an error in the formula the author names Volatility12 EMA.

The formula should be: Mov((Fml("CONHV4") + Fml("CONHV6") + Fml("CONHV10"))/3,12,e)

Here are formulas for version 6.5 of MetaStock for Windows. These formulas use Inputs which allow you to select the time periodswhen you plot the formulas.


David Landry Historical Volatility

Num:=Input("Number Of Periods For Numerator",1,100,4);
Den:=Input("Number Of Periods For Denominator",2,1000,100);
Std(Log(C/Ref(C,-1)),Num)/Std(Log(C/Ref(C,-1)),Den)

 


David Landry Average Historical Volatility

Den:=Input("Number Of Periods For Denominator",2,1000,100);
((Std(Log(C/Ref(C,-1)),4)/Std(Log(C/Ref(C,-1)),Den))+
(Std(Log(C/Ref(C,-1)),6)/Std(Log(C/Ref(C,-1)),Den))+
(Std(Log(C/Ref(C,-1)),10)/Std(Log(C/Ref(C,-1)),Den)))/3

 

 


David Landry EMA of Historical Volatility

Den:=Input("Number Of Periods For Denominator",2,1000,100);
EMA:=Input("Number Of Periods For EMA",2,100,12);
Mov(((Std(Log(C/Ref(C,-1)),4)/Std(Log(C/Ref(C,-1)),Den))+
(Std(Log(C/Ref(C,-1)),6)/Std(Log(C/Ref(C,-1)),Den)) +
(Std(Log(C/Ref(C,-1)),10)/Std(Log(C/Ref(C,-1)),Den)))/3,LastValue(EMA),E)

 

Note: Standard deviation information was not included here because theway these formulasare being used, any standard deviation being used would return an identicalvalue as 1 standard deviation.
Source / From: TOP
http://www.equis.com

Equis and MetaStock® and MetaStock Professional® are registered trademarks of Equis International. Achelis Binary Wave®, The DownLoader®,
Expert Advisor®, OptionScope®, Quotecenter® and Smart Charts® are trademarks of Equis International, a Thomson Reuters company.

TradeStation® Pro, TradeStation® 2000i, OptionStation®, SuperCharts®, PowerEditor® and EasyLanguage®
are registered trademarks of TradeStation Technologies, Inc. Other names and marks referred to are the property of their respective owners.

All information provided on this website is for educational purposes only. Trading involves risk, including possible loss of principal and other losses.

Ten i inne materiały na tej stronie zostały zamieszczone zostały jedynie w celach edukacyjnych, nie ponoszę żadnej odpowiedzialno¶ci za ich stosowanie.

Gra na giełdzie i rynkach walutowych (FOREX) niesie ze sob± ryzyko poważnych strat finansowych!