[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EquisMetaStock Group] Re: Volume Histogram



PureBytes Links

Trading Reference Links

Dear Jose,

Thank you once again.

Mark


--- In equismetastock@xxxxxxxxxxxxxxx, "Jose Silva" <josesilva22@xxx>
wrote:
>
> 
> ---8<---------------------------
> 
> { http://www.metastocktools.com }
> 
> { 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 }
> UpVol:=ValueWhen(1,C>O,V);
> DownVol:=ValueWhen(1,C<O,V);
> UpVolAvg:=Mov(UpVol,Period,E);
> DownVolAvg:=Mov(DownVol,Period,E);
> DownVolAvg:=If(invert,-DownVolAvg,DownVolAvg);
> 
> { Plot in own window }
> UpVolAvg;  {Green}
> DownVolAvg {Red}
> 
> ---8<---------------------------
> 
> 
> jose '-)
> http://www.metastocktools.com
> 
> 
> 
> 
> --- In equismetastock@xxxxxxxxxxxxxxx, markumansky <no_reply@> 
> wrote:
> >
> > 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.
> > 
> > Thanks.
>




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/equismetastock/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/equismetastock/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:equismetastock-digest@xxxxxxxxxxxxxxx 
    mailto:equismetastock-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    equismetastock-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/