| 
 PureBytes Links 
Trading Reference Links 
 | 
uenal.mutlu@xxxxxxxxxxx asked about the following code:
> // calculate the success
> Filter = patUp or patDown2;   //  1;  // totpatUP > 0;
>
> success = (patUp    and (Ref(C,1) > C))
>        or (patDown2 and (Ref(C,1) < C));
>
> AddColumn(cum(Filter),   "#Cases", 1);
> AddColumn(cum(success),  "#Successes", 1);
> AddColumn(cum(success) / cum(Filter) * 100, "%Success", 1.2);
Do you really want that "success" statement to look into the future?  If
not, those Ref statements need a minus sign before the 1:  "Ref(C,-1)".
Owen Davies
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get A Free Psychic Reading! Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/O10svD/Me7FAA/uetFAA/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/ 
 
 |