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

[amibroker] Re: Learning



PureBytes Links

Trading Reference Links

I'm guessing this is what you´re after:

day1up=Cum(C>ValueWhen(Ref(pat,-1),C) AND C>Ref(C,-1));

/JS


--- In amibroker@xxxxxxxxxxxxxxx, "dom1_1998" <Dom2000@xxxx> wrote:
> Just so I can anchor this.
> 
> Are you saying that when a condition is met I get a 1.  And when I 
say
> cum(c>ref(cond,-1), it looks at the actual value of today's
> close,($36) and determines that's more than 1 so count it. 
> 
> If so, I can understand that.  But what puzzles me is not every 
bar or
> combination of bars meet the exact specified condition.  Therefore 
the
> cum(c>ref(cond,-1) number should have been less than the total bars
> loaded.
> 
> I got a headache.


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark
Printer at Myinks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/sOykFB/k9VGAA/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/