PureBytes Links
Trading Reference Links
|
Filter is used for explorations only. It should come before the addcolumn
statements.
Normally place the exploration at the end so it does not interfere with
anything else
AFL Code...
Filter = xxxx;
addcolumn(...)
----- Original Message -----
From: "mmqp" <mmqp@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Friday, September 12, 2003 3:54 PM
Subject: [amibroker] FILTER questions.
> Hi,
>
> I have the following construct in AA:
>
>
> AFL codes
> ......
> ......
> porosityTags = Cross ( S1_curve, price );
> priceBelowSupportTags = IIf( 100*((price - S1_curve)/S1_curve) < -
> S1_porosityPct , 1 , 0 );
> ....
> ...
> ....
> ...
>
> AddColumn ( price , "price" , 1.2 );
> AddColumn ( S1_curve , "S1" , 1.2 );
>
> Filter = (StrLeft(Name(),1) != "^") AND EMA(V,50) >= 50000 AND (EMA
> (price,200) - price)/price > 0.3 AND ( price <= ( s1_curve +
> S1band ) AND price >= ( s1_curve - S1band ) ) ;
>
> My questions is:
>
> - Does the location of the FILTER statment important? I do not want
> to explore on indexes (symbol with ^ as the first character), Stocks
> must have average volume of more than 50000 shares a day etc. If I
> place the FILTER statement at the end; will AB still execute all AFL
> statements above but just not print out the result or Does AB skip
> the stock completely if the stock does not meet for example the
> average volume condition.
>
> - Can I have multiple FILTER statement?
>
> - One of the condition is 200 EMA volume. if Range was selected
> as "n last quotation" and "n=1". This setting seems only affect the
> Addcolumn statement but not the AB's EMA function, meaning it only
> print out the last met(filter) quote but the EMA(price,200) is still
> computed normally. Is this understanding correct.
>
> TIA
>
>
>
> 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/
>
>
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark
Printer at Myinks.com. Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/l.m7sD/LIdGAA/qnsNAA/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/
|