PureBytes Links
Trading Reference Links
|
Try this
Count = Cum( ref(c,-10)>ref(c,-9) and ref(c,-9)>ref(c,-8) and
ref(c,-7)>ref(c,-8) and ref(c,-6)>ref(c,-7) and ref(c,-5)>ref(c,-6) );
Perform = ( c-ref(c,-5) ) / ref(c,-5) * 100;
Filter=1;
Addcolumn( count, "Count", 1);
Addcolumn(Perform,"perf %", 1.2);
Cheers,
Graham
http://groups.msn.com/ASXShareTrading
http://groups.msn.com/FMSAustralia
-----Original Message-----
From: Eugene [mailto:johngalt1234@xxxxxxxxx]
Sent: Tuesday, 8 July 2003 7:45 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Calculating Stats
This has more to do with Statistics...
I want to find the number of times an event has occurred..
the number of times the stock closed down two days in a row and then closed
up the next three days...I then want to know what was it performance over
the next 5 days.
Any simple way of doing this???
TIA
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/
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Coral Calcium for Greater Health - $23.95
http://www.challengerone.com/t/l.asp?cid=2805&lp=calcium2.asp
http://us.click.yahoo.com/MmkSQC/NTVGAA/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/
|