PureBytes Links
Trading Reference Links
|
<SPAN
class=147554215-10042003>epontoem,
<SPAN
class=147554215-10042003>
first
define your calculation then count the true occurrences....
<SPAN
class=147554215-10042003>
x=
your calculation
<SPAN
class=147554215-10042003>bars=cum(1);
<SPAN
class=147554215-10042003>count=sum(x,bars);
<SPAN
class=147554215-10042003>plot(x,"Cond1",4,2);
<SPAN
class=147554215-10042003>title="total
"+writeval(lastvalue(count));
<SPAN
class=147554215-10042003>
<SPAN
class=147554215-10042003>(untested but should get you there)
<SPAN
class=147554215-10042003>
<SPAN
class=147554215-10042003>
<SPAN
class=147554215-10042003>
Jayson
<FONT face=Tahoma
size=2>-----Original Message-----From: epintoem
[mailto:epintoem@xxxxxxxxx]Sent: Thursday, April 10, 2003 11:28
AMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker]
Calculating statistical occurrencesHow would I go about
Calculating the number of times a certain eventhappens with regard to a
security.the problem in this case is as follows:In a
security...I would like to determine how many times in itslifetime dit the
next days high or low come to within say 20 cents ofthe previous days close.
and mark that position on the chart.TIASend
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.
|