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

Re: [amibroker] need any 3 of 4 conditions to be true



PureBytes Links

Trading Reference Links

Try using Sum(cond1 and cond2 and cond3 and cond4,ndays)>=3;
  ----- Original Message ----- 
  From: Yuki Taga 
  To: amibroker@xxxxxxxxxxxxxxx 
  Sent: Wednesday, September 22, 2004 8:20 AM
  Subject: [amibroker] need any 3 of 4 conditions to be true



  If I define four conditions, how can I write a filter statement that returns
  issues where *any* 3 of the 4 conditions are true?

  For example:

  Cond1 = whatever;
  Cond2 = wherever;
  Cond3 = whomever;
  Cond4 = however;

  filter = (need *any* 3 of the 4 above to be true);

  I think I could eventually get this done myself, but I suspect the
  result would make a programmer roll on the floor with laughter.  The
  only way I can think of to do it would be *really* long.  There must
  be a compact way of doing this, isn't there?

  Yuki




  Check AmiBroker web page at:
  http://www.amibroker.com/

  Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
  Yahoo! Groups Links



   




  ---
  Outgoing mail is certified Virus Free.
  Checked by AVG anti-virus system (http://www.grisoft.com).
  Version: 6.0.766 / Virus Database: 513 - Release Date: 9/18/2004

[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/