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

RE: [amibroker] Deleting Stocks



PureBytes Links

Trading Reference Links

Bob,

Then watchlist works also for Graham's export AFL which will store them
all into .csv files, then you can delete. Code below:

/*
Export intraday AND EOD data to CSV files, one file for each stock
In the first line insert the directory you want to save them to, make
sure the directory exists
Select your charts to export with the "Apply to" filter in AA window (or
just pick "current symbol")
Select the timeframe period you want to save as using the AA "Settings"
Press Scan button
by Graham Kavanagh 05 Feb 2004
*/

fh = fopen( "c:\\"+Name()+".csv", "w"); 
if( fh ) 
{ 
   fputs( "Ticker,Date,Time,Open,High,Low,Close,Volume \n", fh ); 
   y = Year(); 
   m = Month(); 
   d = Day(); 
   r = Hour();
   e = Minute();
   n = Second();
   
   for( i = 0; i < BarCount; i++ ) 
   { 
      fputs( Name() + "," , fh );
      ds = StrFormat("%02.0f-%02.0f-%02.0f,", 
                     y[ i ], m[ i ], d[ i ] ); 
      fputs( ds, fh ); 
     
      ts = StrFormat("%02.0f:%02.0f:%02.0f,", 
                     r[ i ],e[ i ],n[ i ] ); 
      fputs( ts, fh ); 

      qs = StrFormat("%.4f,%.4f,%.4f,%.4f,%.0f\n", 
                     O[ i ],H[ i ],L[ i ],C[ i ],V[ i ] ); 
      fputs( qs, fh ); 
   } 

   fclose( fh ); 
} 

Buy = 0;

--
Terry


| -----Original Message-----
| From: amibroker@xxxxxxxxxxxxxxx 
| [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of Bob Jagow
| Sent: Monday, May 30, 2005 12:45 PM
| To: amibroker@xxxxxxxxxxxxxxx
| Subject: RE: [amibroker] Deleting Stocks
| 
| 
| Put them in a watch list and select then delete its contents 
| from the 'assignments organizer' Bob
| 
| -----Original Message-----
| From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx]On
| Behalf Of areehoi
| Sent: Monday, May 30, 2005 11:25 AM
| To: amibroker@xxxxxxxxxxxxxxx
| Subject: [amibroker] Deleting Stocks
| 
| 
| I need to delete over 300 stocks with low volume & price from 
| my USStocks database.  Does anyone have a way to do this 
| other than  each one individually. I can put them in a comma 
| deliminated TXT file. Thanks for any help you may offer.
| 
| Dick H.
| 
| 
| 
| 
| 
| Please note that this group is for discussion between users only.
| 
| To get support from AmiBroker please send an e-mail directly 
| to SUPPORT {at} amibroker.com
| 
| For other support material please check also: 
| http://www.amibroker.com/support.html
| 
| 
| Yahoo! Groups Links
| 
| 
| 
| 
| 
| 
| 
| 
| ------------------------ Yahoo! Groups Sponsor 
| --------------------~--> 
| Has someone you know been affected by illness or disease? 
| Network for Good is THE place to support health awareness 
| efforts! http://us.click.yahoo.com/Rcy2bD/UOnJAA/cosFAA/GHeqlB/TM
| --------------------------------------------------------------
| ------~-> 
| 
| Please note that this group is for discussion between users only.
| 
| To get support from AmiBroker please send an e-mail directly to 
| SUPPORT {at} amibroker.com
| 
| For other support material please check also: 
| http://www.amibroker.com/support.html
| 
|  
| Yahoo! Groups Links
| 
| 
| 
|  
| 
| 



------------------------ Yahoo! Groups Sponsor --------------------~--> 
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/Tcy2bD/SOnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.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:
    http://docs.yahoo.com/info/terms/