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

[EquisMetaStock Group] Re: Vama confusion.



PureBytes Links

Trading Reference Links

Cum(x<>-101) is an attempt to accumulate valid indicator bars - as 
opposed to N/A bars that may produce division errors.

Cum(x>-1) may not work in some instances because there could be 
negative values lurking in some indicator ("P") bars.
-101 was chosen arbitrarily because it's unlikely to occur in the 
indicator's prior data set.

To avoid confusion and possible problems, a better way to find valid 
bars would be this:
Cum(IsDefined(x))

"pds:=If(pds>Cum(IsDefined(x))-VAvgPds,Cum(IsDefined(x))-VAvgPds,pds);
"

jose '-)



--- In equismetastock@xxxxxxxxxxxxxxx, "bbinns24" <bbinns24@xxxx> 
wrote:
> "pds:=If(pds>Cum(x<>-101)-VAvgPds,Cum(x<>-101)-VAvgPds,pds);
> 
> "What is a True/False symbol doing in Cum(Data Array)in above
> statement. X=close; (close not equal to minus 101)minus VAvgPds;
> 
> Is this correct??? Any enlightenment would be appreciated.Full
> formula is below.
> 
> 
> 
> {EMA - Volume adjusted}
> 
> 
> { Volume adjusted, dynamic-period EMA v2.2 } { EMA periodicity
> shortens on
> high volume,
> increases on low volume }
> { Copyright 2003 Jose Silva }
> { http://users.bigpond.com/prominex/pegasus.htm }
> 
> pds:=Input("EMA periods",1,2520,21);
> VAvgPds:=Input("Volume sample periods",
> 2,252,21);
> x:=Input("use Open=1 High=2 Low=3 Close=4 Volume=5 P=6",1,6,4);
> shift:=1+Input("EMA vertical shift %", -100,100,0)/100; plot:=Input
> ("EMA=1,
> Dyn EMA pds=2, Vol avg=3, Crossovers=4",1,4,1);
> 
> x:=If(x=1,O,If(x=2,H,If(x=3,L,If(x=5,V,If(x=6,P,C)))));
> MovVol:=Mov(V,VAvgPds,E);
> VolRatio:=Min(V,MovVol)/Max(V,MovVol);
> VolAvg:=If(V>MovVol,2-VolRatio,VolRatio);
> multi:=.75/(.1+.32*VolAvg+.58*Power(VolAvg,4));
> pds:=pds*multi;
> pds:=If(pds>Cum(x<>-101)-VAvgPds,
> Cum(x<>-101)-VAvgPds,pds);
> pds:=If(pds<1,1,pds);
> VlEma:=x*2/(pds+1)+PREV*(1-2/(pds+1));
> VlEma:=VlEma*shift;
> signals:=Cross(x,VlEma)-Cross(VlEma,x);
> 
> If(plot=2,pds,If(plot=3,VolAvg*50,
> If(plot=4,signals,VlEma)))
> 
> *************************************************************



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/BefplB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

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

<*> 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/