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

RE: [amibroker] programming 101A



PureBytes Links

Trading Reference Links




<SPAN 
class=754263821-17052003>Sid,
How 
about counting the number of bars since cond2 and using that number in the sum 
of cond1?
<SPAN 
class=754263821-17052003> 
<SPAN 
class=754263821-17052003>x=barssince(cond2);
<SPAN 
class=754263821-17052003>y=sum(cond1,x);
<SPAN 
class=754263821-17052003> 
<SPAN 
class=754263821-17052003> 
Regards, 
Jayson 
<FONT face=Tahoma 
size=2>-----Original Message-----From: Sidney Kaiser 
[mailto:s9kaiser@xxxxxxxxxxx]Sent: Saturday, May 17, 2003 5:20 
PMTo: AmiBroker@xxxxxxxxxxxxxxxSubject: [amibroker] 
programming 101A(4) Still trying to count the number of 
occurrences of some condition.  Cond = 1 or 0.  Cum(cond) does not 
do the job because it is counting the number of bars from the start of the 
data to cond.  What I need to do is count is the # of times cond 
happened and then when cond2 occurs, reset  that cond counter back to 
zero.TIASidSend 
BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
suggest@xxxxxxxxxxxxx-----------------------------------------Post 
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
group FAQ at: <A 
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Your use of Yahoo! Groups is subject to the <A 
href="">Yahoo! Terms of Service. 







Yahoo! Groups Sponsor


  ADVERTISEMENT 









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 the Yahoo! Terms of Service.