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

Re: Count function?



PureBytes Links

Trading Reference Links

are you sure it said count as it may be from a script or dll.
similar to the count in the formula below. but you said in blue 
whereee as the count here is in red.



/*Continuation of a DOWNTREND*/
K=EMA((H+L+C)/3,10);
S1=200*(K-Ref(K,-1))/(K+Ref(K,-1));
rs=EMA(EMA(S1,3),3);
s3= Ref(RS,-1)==HHV(RS,5) AND abs(Ref(RS,-1))<=0.5 ; 
values18 = s3>0;
AddToComposite(Values18,"~continuationdown","V");
/*Continuation of an UPTREND*/
K=EMA((H+L+C)/3,10);
S1=2*(K-Ref(K,-1))/(K+Ref(K,-1));
rrs=100*EMA(S1,3);
rs=EMA(rrs,3);
s3= Ref(RS,-1)==LLV(RS,5) AND abs(Ref(RS,-1))<0.5 ; 
values19 = s3>0;
AddToComposite(Values19,"~continuationup","V");
/*Population of the group*/
AddToComposite(1,"~count","V");
Buy=0;
Plot(100*Foreign("~continuationup","V")/Foreign
("~count","V"),"Up",5,1);
Plot(100*Foreign("~continuationdown","V")/Foreign
("~count","V"),"Down",4,1);
Title=" UP="+WriteVal(100*Foreign("~continuationup","V")/Foreign
("~count","V"),1.2)+
", UP THE LAST 3 DAYS="+
WriteVal(Sum(100*Foreign("~continuationup","V")/Foreign
("~count","V"),3),1.2)+
", DOWN="+WriteVal(100*Foreign("~continuationdown","V")/Foreign
("~count","V"),1.2)+
",DOWN THE LAST 3 DAYS="+
WriteVal(Sum(100*Foreign("~continuationdown","V")/Foreign
("~count","V"),3),1.2);


cheers: john.


--- In amibroker@xxxx, "Rick Parsons" <RickParsons@xxxx> wrote:
> Use addcolumn and see what it contains. Might provide a clue.
> 
> Rick
> -----Original Message-----
> From: Owen Davies [mailto:owen5819@x...]
> Sent: Monday, June 24, 2002 6:55 PM
> To: amibroker@xxxx
> Subject: [amibroker] Count function?
> 
> 
> I was just playing with the Indicator Builder and happened
> to name a variable "Count." It appeared in blue, so I assume
> there is a Count function, which seems to be undocumented.
> Can anyone supply info about it?
> 
> Owen
> 
> 
> Yahoo! Groups Sponsor 
> ADVERTISEMENT
> 
> 
> 
> 
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
Service.