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

RE: [amibroker] ValueWhen



PureBytes Links

Trading Reference Links




<SPAN 
class=741455802-01052003>Rick,
Change 
your condition to include your new filter.......
<SPAN 
class=741455802-01052003> 
<SPAN 
class=741455802-01052003>x=barssince(condition)==5 and c<ref(c,-1) 

 Jayson 
<FONT face=Tahoma 
size=2>-----Original Message-----From: ricko8294_98 
[mailto:ricko@xxxxxxxxxx]Sent: Wednesday, April 30, 2003 5:18 
PMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] 
ValueWhenI am trying to write code which will count the 
number of times a situation occurred across the price data range.For 
example = I know how to count the occurance of a "condition" by using 
count = CUM(condition);I want to find, for only those bars where 
"condition" was true, how many times the close, 5 days later, was 
lower.when I try  testcount = CUM(ValueWhen(C < 
Ref(condition,-5),C,1));the result is considerably higher than the 
number of times the condition was true. - not a count of the number of times 
the "test" was true.Any help would be most 
appreciatedRickSend 
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












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.