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 #

Volume Histogram by Jose Silva

From: markumansky <no_reply[at]>
To: equismetastock[at] <equismetastock[at]>
Date: Sunday, December 3, 2006, 7:24:09 PM
Subject: [EquisMetaStock Group] Volume Histogram

Is there anyone in our group who is able to translate the following AFL code to Metastock?

Its supposed to show a histogram of the difference between the EMA of UpVolume and the EMA of DownVolume.

UpVol = Valuewhen(C > O, V);
DownVol = Valuewhen(C < O, V);
Period = Param("Period",3,2,10,1);
UpVolAvg = EMA( UpVol, Period ) ;
DownVolAvg = EMA( DownVol, Period ) ;
Plot(UpVolAvg,"UpVolume", colorGreen);
Plot(DownVolAvg, "DownVolume", colorRed);

Any assistance would be appreciated.


From: Jose Silva <josesilva22[at]>
To: equismetastock[at] <equismetastock[at]>
Date: Monday, December 4, 2006, 4:58:04 PM
Subject: [EquisMetaStock Group] Re: Volume Histogram

Volume Histogram

{ }

{ Indicator user inputs }
Period:=Input("EMA averaging periods",1,252,3);
invert:=Input("Invert DownVolAvg plot? [1]Yes, [0]No",0,1,0);

{ Up/Down volume avg }

{ Plot in own window }
UpVolAvg; {Green}
DownVolAvg {Red}


jose '-)

From: markumansky <no_reply[at]>
To: equismetastock[at] <equismetastock[at]>
Date: Thursday, December 7, 2006, 1:04:29 PM
Subject: [EquisMetaStock Group] Re: Volume Histogram

Dear Jose,

Thank you once again.


Source / From: TOP

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!