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

Re: [amibroker] How to use multiple NASDAQ lists?



PureBytes Links

Trading Reference Links




Oops, that last line should have read:
 
rightWL = (ZeroKH1 AND wl1) OR (ZeroKH2 AND wl2) OR 
(OneKH1 AND wl3) OR (OneKH2 AND wl4) OR (TwoKH1 AND wl5) OR (TwoKH2 AND 
wl6);
 
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  HB 
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: Monday, December 29, 2003 9:32 
  PM
  Subject: Re: [amibroker] How to use 
  multiple NASDAQ lists?
  
  Chuck, here's some sample code that will do what 
  you want with a bit of modification.  Just make sure the appropriate 
  tickers are in watchlists 1-6.
   
  HB
   
  
  
  //////////////////////////////
   
  // Date conditionsZeroKH1 = 
  IIf(today>=1000101 AND today <=1000630, 1,0);ZeroKH2 = 
  IIf(today>=1000701 AND today <=1001231, 2,0);OneKH1 = 
  IIf(today>=1010101 AND today <=1010630, 3,0);OneKH2 = 
  IIf(today>=1010701 AND today <=1011231, 4,0);TwoKH1 = 
  IIf(today>=1020101 AND today <=1020630, 5,0);TwoKH2 = 
  IIf(today>=1020701 AND today <=1021231, 6,0);
   
  // Watchlist membershipwl1 = InWatchList(1);wl2 = 
  InWatchList(2);wl3 = InWatchList(3);wl4 = InWatchList(4);wl5 = 
  InWatchList(5);wl6 = InWatchList(6);
   
  // Ticker is in right date range and is a member of the right 
  watchlistrightWL = (ZeroKH1 AND wl7) OR (ZeroKH2 AND wl9) OR (OneKH1 AND 
  wl11) OR (OneKH2 AND wl13) OR (TwoKH1 AND wl15) OR (TwoKH2 AND 
  wl17);
   
  Buy =
     Buy
     AND rightWL
  ;
   
  //////////////////////////////
   
   
  <BLOCKQUOTE 
  >
    ----- Original Message ----- 
    <DIV 
    >From: 
    <A title=chuck_rademacher@xxxxxxxxxx 
    href="">Chuck Rademacher 
    To: <A title=amibroker@xxxxxxxxxxxxxxx 
    href="">amibroker@xxxxxxxxxxxxxxx 
    Sent: Monday, December 29, 2003 7:19 
    PM
    Subject: [amibroker] How to use 
    multiple NASDAQ lists?
    
    I'm 
    hoping that one of you guys (or gals) who were able to use the historical 
    NASDAQ lists that I posted can now help me.   I basically want to 
    trade only the stocks on the 1997 list, for instance, in 1997.   
    The stocks on the 2001 list in 2001.   And so 
    on.
    <FONT face=Arial color=#0000ff 
    size=2> 
    I'm 
    assuming that I would make a watchlist that contains the sum of all of the 
    watchlists (1995 to 2003).   I would then create a separate 
    watchlist for each year.   Then, while trading the master list, my 
    AFL would check the year using the Year() function and only trade if the 
    stock was in the watchlist for the corresponding year.   Once in a 
    trade, I won't worry about exiting if the stock no longer appears in the 
    list.   I have my own way of determining if the stock is no longer 
    traded.   
    <FONT face=Arial color=#0000ff 
    size=2> 
    <FONT face=Arial color=#0000ff 
    size=2>Anyone care to help me and, no doubt, others by supplying some 
    code?
    <FONT face=Arial color=#0000ff 
    size=2> 
    <FONT face=Arial color=#0000ff 
    size=2>Thanks,
    <FONT face=Arial color=#0000ff 
    size=2> 
    <FONT face=Arial color=#0000ff 
    size=2>ChuckSend 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 
    
    
    Yahoo! Groups Links
    
      To visit your group on the web, go to:<A 
      href="">http://groups.yahoo.com/group/amibroker/  

      To unsubscribe from this group, send an email to:<A 
      href="">amibroker-unsubscribe@xxxxxxxxxxxxxxx  

      Your use of Yahoo! Groups is subject to the <A 
      href="">Yahoo! Terms of Service. 
    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 
  
  
  Yahoo! Groups Links
  
    To visit your group on the web, go to:<A 
    href="">http://groups.yahoo.com/group/amibroker/  

    To unsubscribe from this group, send an email to:<A 
    href="">amibroker-unsubscribe@xxxxxxxxxxxxxxx  

    Your use of Yahoo! Groups is subject to the <A 
    href="">Yahoo! Terms of Service. 
  


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





Yahoo! Groups Links
To visit your group on the web, go to:http://groups.yahoo.com/group/amibroker/ 
To unsubscribe from this group, send an email to:amibroker-unsubscribe@xxxxxxxxxxxxxxx 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.