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

[amibroker] Re: Learning



PureBytes Links

Trading Reference Links

Sorry about that.  I did have your way.  It still gives me the total
number of bars loaded as if I wrote bars=cum(1); instead of only those
closes that were higher than the pattern yesterday.

Dominck



--- In amibroker@xxxxxxxxxxxxxxx, "Jayson" <jcasavant@xxxx> wrote:
> Dominick,
> Count your parenthesis. It should be...
> day1up=Cum(C>Ref(pat,-1));
> 
> 
> Regards,
> Jayson
> -----Original Message-----
> From: dom1_1998 [mailto:Dom2000@x...]
> Sent: Monday, July 14, 2003 12:57 PM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Learning
> 
> 
> I'm praticing to understand formulas.  I have written this test pattern;
> 
> pat=Ref(C,-3) < Ref(C,-4) AND Ref(C,-2) <Ref(C,-3)AND
> Ref(C,-2)<Ref(C,-1)AND C>Ref(C,-1);
> 
> totpat=Cum(pat);
> day1up=Cum(Ref(pat,-1)AND C>Ref(C,-1));
> 
> I totaled the patterns with cum(pat).  But when I tried to total the
> day1up patterns with day1up=cum(c>ref(pat,-1);  It wouldn't work.
> I had to use the formula above (day1up=Cum(Ref(pat,-1)AND C>Ref(C,-1));
> 
> Why doesn't the cum(c>ref(pat,-1) work??  Doesn't it say total only
> the number of closes that are greater than the pattern yesterday?
> 
> TIA,
> 
> Dominick
> 
> 
>       Yahoo! Groups Sponsor
>             ADVERTISEMENT
> 
> 
> 
> 
> Send BUG REPORTS to bugs@xxxx
> Send SUGGESTIONS to suggest@xxxx
> -----------------------------------------
> Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
> (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> --------------------------------------------
> Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> 
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges & Refill Kits for Your Epson at Myinks.com
Free shipping on orders $50 or more to the US and Canada.
http://www.c1tracking.com/l.asp?cid=5705&lp=home/epson.asp
http://us.click.yahoo.com/brYXfA/_xWGAA/ySSFAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

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