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

RE: [amibroker] Need help from AB GURU please.



PureBytes Links

Trading Reference Links




You 
can simply add them......
<SPAN 
class=413050705-20022003> 
<SPAN 
class=413050705-20022003>x=cond1+cond2+cond3+cond4 etc;
<SPAN 
class=413050705-20022003>addcolumn(x,"Sum of conditions");
<SPAN 
class=413050705-20022003> 
This 
assumes that all your conditions return either a 1 or 0 
(true/false)
 Jayson 
<FONT face=Tahoma 
size=2>-----Original Message-----From: mroman59 
<mroman59@xxxxxxxxx> [mailto:mroman59@xxxxxxxxx]Sent: 
Wednesday, February 19, 2003 6:46 PMTo: 
amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] Need help from AB GURU 
please.The following list is part of my exploration 
report that identifies each Condition from my program as they are met, as 
either O(no) or 1(yes) in the column. What I would like to do is create an 
additional AddColumn that adds the number of 1's and report the total. For 
example, if all conditions are met below I would like to see and 
AddColumn reporting the value of 11. I hope this makes sense and thank 
you if you can 
help.AddColumn(Cond1,"MA",1);AddColumn(Cond2,"MACD",1);AddColumn(Cond3,"ROC",1);AddColumn(Cond4,"STO",1);AddColumn(Cond5,"RSI",1);AddColumn(Cond6,"CCI",1);AddColumn(Cond7,"ADX",1);AddColumn(Cond8,"MDI",1);AddColumn(Cond9,"MFI",1);AddColumn(Cond10,"OBV",1);AddColumn(Cond11,"PVI",1);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  









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.