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

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



PureBytes Links

Trading Reference Links

Yes, then only the following lines
should be in the AA window, and
set ApplyTo to "current stock":

//-------------
Filter=1;
Buy = Sell = 0;
AddColumn(C, "dummy");
xxWinOpen();

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();
      }
  }

DeleteStocksFromDB(13);

//-------------



----- Original Message ----- 
From: "steve_almond" <steve@xxxxxxxxxxxxxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Thursday, June 05, 2003 12:32 AM
Subject: [amibroker] Re: All Those Tickers........


> No, full version of AB.
> 
> Can we bypass the function and use the code you posted, (but I'm not 
> sure how):
> 
> //---------------------------------------------------------
> 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();
> }
> }
> //---------------------------------------------------------
> 
> 
> Steve
> 
> 
> 
> 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 ---------------------~-->
Get A Free Psychic Reading! Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/Lj3uPC/Me7FAA/ySSFAA/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/