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

Re: [amibroker] All Those Tickers........



PureBytes Links

Trading Reference Links




Udo, right you are. Then a generic method 
like the following would be useful 
to have:
 
   AddStockToDB(newticker);
 
within that, the ticker is searched at "known" locations 
(maybe a 
local file) and also its "configuration info" 
(Sector/Industry etc.)
and the ticker is added in the right branch and assigned 
to the 
right sector, industry etc. 

 
IMHO this could be easily realized by just <FONT 
face=Arial>putting the one or
few tickers one is interessted in into 
the import/setup script's
input file one had used 
during initial DB setup; should work...
 
UM
 
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  <A title=Udo.Harke@xxxxxxxxxxx 
  href="">Udo.Harke@xxxxxxxxxxx 
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: Wednesday, June 04, 2003 9:06 
  PM
  Subject: Re: [amibroker] All Those 
  Tickers........
  
  Hello UM, Steve,
   
  the flip side of your code is this one: 
  Suppose that your stocks will have recovered from their low-price behavior, 
  then you should put them back into the correct Groups/sectors or wherever to 
  participate in the new trading opportunities!
   
  However, once those stocks are gone then 
  you will not any longer be able to track them!
   
  regards,
   
  Udo
   
  P.S.: Investing the time into 
  pre-filter techniques is tedious, but it will sooner or later 
  pay-off!
   
  <BLOCKQUOTE 
  >
    -----Ursprüngliche Nachricht----- 
    <DIV 
    >Von: 
    <A title=uenal.mutlu@xxxxxxxxxxx 
    href="">uenal.mutlu@xxxxxxxxxxx 
    An: <A title=amibroker@xxxxxxxxxxxxxxx 
    href="">amibroker@xxxxxxxxxxxxxxx 
    Cc: <A title=abtool@xxxxxxxxxxxxxxx 
    href="">abtool@xxxxxxxxxxxxxxx 
    Gesendet: Mittwoch, den 4. Juni 2003 
    16:46 Uhr
    Betreff: Re: [amibroker] All Those 
    Tickers........
    Hi Steve,the plugin ABtool has a function for 
    deleting singleand multiple tickers from the AB database. Just 
    movethose stocks to delete into a watchlist and use the following 
    AFL code which is taken from the ABtool/Functions.afl.You can also 
    select them using a condition like in your example.You can then put the 
    result into any desired watchlist byrightclicking within the results 
    window of 
    Scan/Explore.//---------------------------------------------------------function 
    DeleteStocksFromDB(iWL)  { // stocks in the given watchlist are 
    deleted     // from the database    
    count = 0;     ticker = 
    xxWLtickerFirst(iWL);    while (ticker != 
    "")      
    {        count++; 
            xxWinText("" + ticker + 
    "\n");        
    xxDeleteStockFromDB(ticker);  // deletes from 
    DB        ticker = 
    xxWLtickerNext(iWL);      
    }    xxWLclear(iWL);    if (count 
    > 0)      
    {        
    xxViewRefresh();        
    xxWLrefresh();      }  
    }//---------------------------------------------------------In 
    your code call this function for example like this:  
    DeleteStocksFromDB(32);     This deletes all 
    stocks in watchlist 32 permanently from the DBand of course also from 
    the watchlist.You can find the latest ABtool/Functions.afl file 
    here:<A 
    href="">http://groups.yahoo.com/group/abtoolYou 
    just need to #include it at top of your own scriptand issue the 
    DeleteStocksFromDB() function.UM----- Original Message 
    ----- From: "steve_almond" <steve@xxxxxxxxxxxxxxxxxxxxxx>To: 
    <amibroker@xxxxxxxxxxxxxxx>Sent: Wednesday, June 04, 2003 4:04 
    PMSubject: [amibroker] All Those Tickers........>> As I 
    speak, I'm downloading the 'Complete US Stocks Database', some > 7700 
    symbols in all, nicely arranged in Market/Groups/Sectors.> Thing is, 
    I don't really want all 7700 symbols. I get confused > enough with a 
    few hundred. So, the question is can I scan this vast > database and 
    select/keep only those with (for example):> > 
    C*MA(V,21)>3,000,000> > I know how to do the 
    scan/exploration, how do I eliminate the > unwanted tickers, but keep 
    the wanted tickers in their correct > Groups/Sectors?> 
    > Thanks,> > 
Steve






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.