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

RE: [amibroker] Filter question - JAYSON



PureBytes Links

Trading Reference Links




Thanks 
Markus.....
 
Regards,
 
Jayson 
<FONT face=Tahoma 
size=2>-----Original Message-----From: funnybiz@xxxxxx 
[mailto:funnybiz@xxxxxx]Sent: Tuesday, May 06, 2003 10:57 
AMTo: Amibroker (Yahoo-Forum)Subject: [amibroker] Filter 
question - JAYSON
Jayson,
 
look what goodie TJ has sent me regarding our 
recent discussion on how to use filter with 
Addtocomposite.
 
Hope you find it worthwhile - and, of course, 
everybody else!!
 
Peace
 
Markus
----- Original Message ----- 
From: <A 
href="" title=tj@xxxxxxxxxxxxx>Tomasz Janeczko 
To: IVA 
GmbH 
Sent: Monday, May 05, 2003 8:03 PM
Subject: Re: Filter question

Hello,
 
You can but the syntax is different.
 
Without using if-else:
 


Filter=Minimum=<FONT 
color=#0000ff face="Courier New">MA<FONT color=#6600aa 
face="Courier New">(<FONT color=#000000 
face="Courier New">Volume<FONT color=#6600aa 
face="Courier New">,50<FONT 
color=#6600aa face="Courier New">)>=<FONT color=#ff00ff 
face="Courier New">20000;
sym="~"<FONT 
color=#6600aa face="Courier New">+<FONT color=#0000ff 
face="Courier New">IndustryID<FONT color=#6600aa 
face="Courier New">(1<FONT 
color=#6600aa face="Courier New">); <FONT color=#0000ff 
face="Courier New">
AddToComposite(Filter * 
C<FONT color=#6600aa 
face="Courier New">,sym,<FONT color=#ff00ff 
face="Courier New">"C"<FONT color=#6600aa 
face="Courier New">);
AddToComposite(Filter * 
O<FONT color=#6600aa 
face="Courier New">,sym,<FONT color=#ff00ff 
face="Courier New">"O"<FONT color=#6600aa 
face="Courier New">);
AddToComposite(Filter * 
H<FONT color=#6600aa 
face="Courier New">,sym,<FONT color=#ff00ff 
face="Courier New">"H"<FONT color=#6600aa 
face="Courier New">);
AddToComposite(Filter * 
L<FONT color=#6600aa 
face="Courier New">,sym,<FONT color=#ff00ff 
face="Courier New">"L"<FONT color=#6600aa 
face="Courier New">);
AddToComposite(Filter * 
V<FONT color=#6600aa 
face="Courier New">,sym,<FONT color=#ff00ff 
face="Courier New">"V"); 

AddToComposite(Filter * 
1<FONT color=#6600aa 
face="Courier New">,sym,<FONT color=#ff00ff 
face="Courier New">"I"<FONT color=#6600aa 
face="Courier New">);
Buy=<FONT 
color=#ff00ff face="Courier New">0<FONT color=#6600aa 
face="Courier New">;
 
Using if-else (this is faster):

Filter=Minimum=<FONT 
color=#0000ff face="Courier New">MA<FONT color=#6600aa 
face="Courier New">(<FONT color=#000000 
face="Courier New">Volume<FONT color=#6600aa 
face="Courier New">,50<FONT 
color=#6600aa face="Courier New">)>=<FONT color=#ff00ff 
face="Courier New">20000;
if( LastValue( Filter ) ){
 sym="~"<FONT 
color=#6600aa face="Courier New">+<FONT color=#0000ff 
face="Courier New">IndustryID<FONT color=#6600aa 
face="Courier New">(1<FONT 
color=#6600aa face="Courier New">); <FONT color=#0000ff 
face="Courier New">
 AddToComposite<FONT color=#6600aa 
face="Courier New">(<FONT color=#000000 
face="Courier New">C<FONT color=#6600aa 
face="Courier New">,sym,<FONT color=#ff00ff 
face="Courier New">"C"<FONT color=#6600aa 
face="Courier New">);
 AddToComposite<FONT color=#6600aa 
face="Courier New">(<FONT color=#000000 
face="Courier New">O<FONT color=#6600aa 
face="Courier New">,sym,<FONT color=#ff00ff 
face="Courier New">"O"<FONT color=#6600aa 
face="Courier New">);
 AddToComposite<FONT color=#6600aa 
face="Courier New">(<FONT color=#000000 
face="Courier New">H<FONT color=#6600aa 
face="Courier New">,sym,<FONT color=#ff00ff 
face="Courier New">"H"<FONT color=#6600aa 
face="Courier New">);
 AddToComposite<FONT color=#6600aa 
face="Courier New">(<FONT color=#000000 
face="Courier New">L<FONT color=#6600aa 
face="Courier New">,sym,<FONT color=#ff00ff 
face="Courier New">"L"<FONT color=#6600aa 
face="Courier New">);
 AddToComposite<FONT color=#6600aa 
face="Courier New">(<FONT color=#000000 
face="Courier New">V<FONT color=#6600aa 
face="Courier New">,sym,<FONT color=#ff00ff 
face="Courier New">"V"); 

 AddToComposite<FONT color=#6600aa 
face="Courier New">(1<FONT 
color=#6600aa face="Courier New">,sym,<FONT color=#ff00ff 
face="Courier New">"I"<FONT color=#6600aa 
face="Courier New">);
}<FONT color=#000000 
face="Courier New">
Buy=<FONT 
color=#ff00ff face="Courier New">0<FONT color=#6600aa 
face="Courier New">;
 
Best regards,Tomasz Janeczkoamibroker.com
<BLOCKQUOTE dir=ltr 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  IVA GmbH 
  To: <A href="" 
  title=tj@xxxxxxxxxxxxx>Amibroker (Tomasz) 
  Sent: Monday, May 05, 2003 2:23 PM
  Subject: Filter question
  
  TJ,
   
  could I filter out stocks to be excluded from my 
  addtocomposites like this:
   
  
  Filter<FONT color=#6600aa 
  face="Courier New">=Minimum=<FONT color=#0000ff 
  face="Courier New">MA<FONT color=#6600aa 
  face="Courier New">(<FONT color=#000000 
  face="Courier New">Volume<FONT color=#6600aa 
  face="Courier New">,<FONT color=#ff00ff 
  face="Courier New">50<FONT color=#6600aa 
  face="Courier New">)>=<FONT color=#ff00ff 
  face="Courier New">20000;
  sym="~"<FONT 
  color=#6600aa face="Courier New">+<FONT color=#0000ff 
  face="Courier New">IndustryID<FONT color=#6600aa 
  face="Courier New">(<FONT color=#ff00ff 
  face="Courier New">1); 
  
  AddToComposite<FONT color=#6600aa 
  face="Courier New">(<FONT color=#000000 
  face="Courier New">C<FONT color=#6600aa 
  face="Courier New">,sym,<FONT color=#ff00ff 
  face="Courier New">"C"<FONT color=#6600aa 
  face="Courier New">);
  AddToComposite<FONT color=#6600aa 
  face="Courier New">(<FONT color=#000000 
  face="Courier New">O<FONT color=#6600aa 
  face="Courier New">,sym,<FONT color=#ff00ff 
  face="Courier New">"O"<FONT color=#6600aa 
  face="Courier New">);
  AddToComposite<FONT color=#6600aa 
  face="Courier New">(<FONT color=#000000 
  face="Courier New">H<FONT color=#6600aa 
  face="Courier New">,sym,<FONT color=#ff00ff 
  face="Courier New">"H"<FONT color=#6600aa 
  face="Courier New">);
  AddToComposite<FONT color=#6600aa 
  face="Courier New">(<FONT color=#000000 
  face="Courier New">L<FONT color=#6600aa 
  face="Courier New">,sym,<FONT color=#ff00ff 
  face="Courier New">"L"<FONT color=#6600aa 
  face="Courier New">);
  AddToComposite<FONT color=#6600aa 
  face="Courier New">(<FONT color=#000000 
  face="Courier New">V<FONT color=#6600aa 
  face="Courier New">,sym,<FONT color=#ff00ff 
  face="Courier New">"V"); 
  
  AddToComposite(<FONT 
  color=#ff00ff face="Courier New">1<FONT color=#6600aa 
  face="Courier New">,sym,<FONT color=#ff00ff 
  face="Courier New">"I"<FONT color=#6600aa 
  face="Courier New">);
  Buy=<FONT 
  color=#ff00ff face="Courier New">0<FONT color=#6600aa 
  face="Courier New">;
  <FONT color=#000000 face=Arial 
size=2>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












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.