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

[amibroker] Re: Learning



PureBytes Links

Trading Reference Links

That's exactly right.  I didn't understand why you had to add the last
part C > ref(pat,-1).  

Thanks, 

Now I know. :)))

--- In amibroker@xxxxxxxxxxxxxxx, "johanskatt" <johanskatt@xxxx> wrote:
> 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 Coral Calcium for Greater Health. 1 month supply - $23.95
(1 bottle, 90 tablets, 400mg each with Magnesium & Vitamin D)
http://www.challengerone.com/t/l.asp?cid=2805&lp=calcium2.asp
http://us.click.yahoo.com/mcIe3D/v9VGAA/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/