Hello,

atcFlagDeleteValues passed in flags parameter of AddToComposite deletes all 
DATA from the composite.
http://www.amibroker.com/guide/afl/afl_view.php?addtocomposite

If you want to delete symbols you need to use OLE interface

AB = CreateObject("Broker.Application"):

AB.Stocks.Remove("~YOUR_COMPOSITE"); // this one-liner removes the composite.

http://www.amibroker.com/guide/objects.html


Best regards,
Tomasz Janeczko
amibroker.com
  ----- Original Message ----- 
  From: Herman 
  To: Prashanth 
  Cc: [email protected] 
  Sent: Monday, December 31, 2007 4:48 PM
  Subject: Re: [amibroker] I give up! (how to delete a composite)


  Thanks guys, good solutions but they are work-arounds that take too much 
time. I need to delete ATCs in real time under afl control. Its easy to create 
composites but there seem to be no functions to clean up the mess afterwards 
(from afl). Its got to be out there somewhere.




  I am pretty sure we discussed this before and that a solution was offered. 
Things like that always get lost on the lists, that is why I like the KB/UKB 
much better; at least there you can find complete solutions. Lists as a 
substitute for Help/kb files only leads to frustration and wasting time.




  On that happy note :-) anyone else knows the solution?




  herman









  For tips on developing Real-Time Auto-Trading systems visit:

  http://www.amibroker.org/userkb/




  Monday, December 31, 2007, 10:39:23 AM, you wrote:




        >
       Herman,



        If you want to delete atc's having a particular substring, the best 
option in my opinion is to Export the ATC list to Excel, there using 
AutoFilter, Filter for your choice of tickers to be deleted. Save the results 
in a seperate csv and then import them into a watchlist and delelte using 
Organize Assingments.



        Hope this method helps you in achieving the desired result.



        Cheers



        Prashanth

        ----- Original Message ----- 

        From: Herman 

        To: AmiBroker Users Group 

        Sent: Monday, December 31, 2007 8:30 PM

        Subject: [amibroker] I give up! (how to delete a composite)




        anyone knows where to find the code to delete (remove permanently from 
the db) a composite? I had it at some point but lost it. 




        Also, can wild cards be used? If i have 100 composites and want to 
delete them based on a substring, how to do that?




        I spend two hours looking everywhere, lots of references to its need 
and how to code it (relevant posts/comments go back several years!) but they 
are all fragments that presume ole knowledge. Its a real pain to have to waste 
so much time on finding such a simple function.




        Anyone want to make my day and give me a complete working solution?




        many thanks and a happy new year!

        herman


       

   

Reply via email to