PureBytes Links
Trading Reference Links
|
Thanks Tomasz, I did not understand that bit in the explanation notes.
<span
>Cheers,
Graham
<span
>-----Original Message-----
From: Tomasz Janeczko
[mailto:amibroker@xxxxxx]
Sent: Saturday, 8 February 2003
5:26 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: [amibroker] Using
clearfilter and filter
<font size=3
face="Times New Roman">
<font size=2
face="Times New Roman">Graham,
<font size=2
face="Times New Roman">
<font size=2
face="Times New Roman">ClearFilters, and Filter
methods are from AA OLE Automation object.
<font size=2
face="Times New Roman">They are NOT available in
AFL.
<font size=2
face="Times New Roman">
<font size=2
face="Times New Roman">They are provided to
automate backtests/scans FROM OUTSIDE of AmiBroker
<font size=2
face="Times New Roman">(for example from
external VB program or *external* VBScript/JScript).
<font size=2
face="Times New Roman">
<font size=2
face="Times New Roman">(use it in EXTERNAL .JS
FILE)
<font size=2
face="Times New Roman">
<font size=2
face="Times New Roman">AB = new
ActiveXObject("Broker.Application");
<font size=2
face="Times New Roman">AA = AB.Analysis;
<font size=2
face="Times New Roman">
<font size=2
face="Times New Roman">AA.ClearFilters(); //
THIS IS A METHOD of AA object - not standalone AFL function
<font size=2
face="Times New Roman">AA.Filters( 0,
"sector" ) = 1;
<font size=2
face="Times New Roman">
Best regards,
Tomasz Janeczko
amibroker.com
<span
>----- Original Message -----
<font
size=2 face=Arial>From: <a href=""
title="gkavanag@xxxxxxxxxxxxxx">Graham
<span
>To:<font
size=2 face=Arial> <a
href="" title="amibroker@xxxxxxxxxxxxxxx">AB
yahoo group
<span
>Sent:<font
size=2 face=Arial> Saturday,
February 08, 2003 9:39 AM
<span
>Subject:<font
size=2 face=Arial> [amibroker]
Using clearfilter and filter
<font size=2
face="Times New Roman">
<span
lang=EN-AU >I tried using the
clearfilter() and filer() functions today for first time, yes I know I am
behind the times <span lang=EN-AU
>J
<span
lang=EN-AU >I get unknown identifier
showing when I use them in an exploration. I have them at the top of the
formula in AA
<span
lang=EN-AU >I copy and pasted these
from the example in the release notes, just changed the Filters to suit.
<span
lang=EN-AU >Any advice?
<font size=3
face="Times New Roman">
<font size=2 color=black
face="Courier New">ClearFilters(); <font size=2 color=green
face="Courier New">// clear all filters first
<font size=2 color=red
face="Courier New">Filter<span
lang=EN-AU >( <font
size=2 color=fuchsia face="Courier New">0<font size=2
color=black face="Courier New">, <font size=2
color="#cc4466" face="Courier New">"sector"<font
size=2 color=black face="Courier New"> ) = <font size=2
color=fuchsia face="Courier New">1<font size=2
color=black face="Courier New">; <font size=2
color=green face="Courier New">//energy
<font size=2 color=red
face="Courier New">Filter<span
lang=EN-AU >( <font
size=2 color=fuchsia face="Courier New">0<font size=2
color=black face="Courier New">, <font size=2
color="#cc4466" face="Courier New">"sector"<font
size=2 color=black face="Courier New"> ) = <font size=2
color=fuchsia face="Courier New">6<font size=2
color=black face="Courier New">; <font size=2
color=green face="Courier New">//health / biotech
<font size=2 color=red
face="Courier New">Filter<span
lang=EN-AU >( <font
size=2 color=fuchsia face="Courier New">0<font size=2
color=black face="Courier New">, <font size=2
color="#cc4466" face="Courier New">"watchlist"<font
size=2 color=black face="Courier New"> ) = <font size=2
color=fuchsia face="Courier New">12<font size=2
color=black face="Courier New">; <font size=2
color=green face="Courier New">//gold producers
<font size=2 color=red
face="Courier New">Filter<span
lang=EN-AU >( <font
size=2 color=fuchsia face="Courier New">0<font size=2
color=black face="Courier New">, <font size=2
color="#cc4466" face="Courier New">"watchlist"<font
size=2 color=black face="Courier New"> ) = <font size=2
color=fuchsia face="Courier New">13<font size=2
color=black face="Courier New">; <font size=2
color=green face="Courier New">//gold explorers
<font size=3
face="Times New Roman">
<font size=3
face="Times New Roman">
<font
size=2 face="Times New Roman">Cheers,
Graham
<font size=3
face="Times New Roman">
<font size=2
face="Times New Roman">
Post
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx <font
size=2 face="Courier New">
(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<font
size=2>
Your
use of Yahoo! Groups is subject to the <a
href="">Yahoo! Terms of Service.<font
size=2>
<font size=2
face="Times New Roman">
<font size=2
face="Courier New">Post AmiQuote-related
messages ONLY to: amiquote@xxxxxxxxxxxxxxx <font size=2
face="Courier New">
(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<font
size=2>
Your
use of Yahoo! Groups is subject to the <a
href="">Yahoo! Terms of Service.<font
size=2>
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.
|