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

RE: [amibroker] Filter on String



PureBytes Links

Trading Reference Links




<FONT face=Arial color=#0000ff 
size=2>Ken,
give 
this a whirl, it seems to work here...
<FONT face=Arial color=#0000ff 
size=2> 
 
test=<FONT 
color=#0000ff>StrLeft(<FONT 
size=2>Name(),3<FONT 
size=2>)<FONT face=Arial 
color=#0000ff>;
Filter<FONT 
size=2>=test=="AVG"<FONT face=Arial 
color=#282828 size=2>;<FONT face=Arial 
size=2>
Buy<FONT face=Arial 
size=2>=1<FONT face=Arial color=#282828 
size=2>;<FONT face=Arial color=#0000ff 
size=2>
AddTextColumn( <FONT 
color=#282828 size=2>test<FONT face=Arial color=#282828 
size=2>,"Name"<FONT 
face=Arial color=#282828 size=2>);
 
 
Regards, 
Jayson 
<FONT face=Tahoma 
size=2>-----Original Message-----From: Ken Close 
[mailto:closeks@xxxxxxxx]Sent: Thursday, September 04, 2003 4:51 
PMTo: AmiBroker ListSubject: [amibroker] Filter on 
StringJust curious.  Is it possible to filter on a 
set of names?I have a lot of AVGxxxx symbols that I want to collect into 
a watchlist.I 
tried:Na=Name();Filter=StrLeft("Na",3)=="AVG";Buy=0;AddTextColumn( 
Na,"Name");....but no luck.  Is there a way to do 
this?Thanks,KenPS: I have met my need by Filter = 1; and 
list up to the area I wantedto capture, but still would like to know how to 
do the above.Send 
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


  ADVERTISEMENT 









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.