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

Re: [amibroker] Using clearfilter and filter



PureBytes Links

Trading Reference Links




Graham,
 
ClearFilters, and Filter methods are from AA OLE Automation 
object.
They are NOT available in AFL.
 
They are provided to automate backtests/scans FROM OUTSIDE of 
AmiBroker
(for example from external VB program or *external* 
VBScript/JScript).
 
(use it in EXTERNAL .JS FILE)
 
AB = new ActiveXObject("Broker.Application");
AA = AB.Analysis;
 
AA.ClearFilters(); // THIS IS A METHOD of AA object - not 
standalone AFL function
AA.Filters( 0, "sector" ) = 1;
Best regards,Tomasz 
Janeczkoamibroker.com
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  <A title=gkavanag@xxxxxxxxxxxxxx 
  href="">Graham 
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">AB yahoo group 
  Sent: Saturday, February 08, 2003 9:39 
  AM
  Subject: [amibroker] Using clearfilter 
  and filter
  
  
  <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?
  <SPAN lang=EN-AU 
  > 
  <SPAN 
  lang=EN-AU 
  >ClearFilters(); 
  <SPAN lang=EN-AU 
  >// clear all 
  filters first
  <SPAN lang=EN-AU 
  >Filter<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >( 
  <SPAN lang=EN-AU 
  >0<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >, 
  <SPAN lang=EN-AU 
  >"sector"<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  > ) = 
  <SPAN lang=EN-AU 
  >1<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >; 
  <SPAN lang=EN-AU 
  >//energy
  <SPAN lang=EN-AU 
  >Filter<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >( 
  <SPAN lang=EN-AU 
  >0<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >, 
  <SPAN lang=EN-AU 
  >"sector"<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  > ) = 
  <SPAN lang=EN-AU 
  >6<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >; 
  <SPAN lang=EN-AU 
  >//health / 
  biotech
  <SPAN lang=EN-AU 
  >Filter<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >( 
  <SPAN lang=EN-AU 
  >0<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >, 
  <SPAN lang=EN-AU 
  >"watchlist"<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  > ) = 
  <SPAN lang=EN-AU 
  >12<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >; 
  <SPAN lang=EN-AU 
  >//gold 
  producers
  <SPAN lang=EN-AU 
  >Filter<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >( 
  <SPAN lang=EN-AU 
  >0<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >, 
  <SPAN lang=EN-AU 
  >"watchlist"<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  > ) = 
  <SPAN lang=EN-AU 
  >13<FONT 
  face="Courier New" color=black size=2><SPAN lang=EN-AU 
  >; 
  <SPAN lang=EN-AU 
  >//gold 
  explorers
  <SPAN lang=EN-AU 
  > 
  <SPAN lang=EN-AU 
  > 
  <SPAN 
  >Cheers,Graham
  <SPAN lang=EN-AU 
  > 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









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.