**Stocks_.Remove(symol) would do.
You may want to call AB.SaveDatabase() afterward to make your change
persistent.


On Fri, Oct 2, 2009 at 10:57 AM, Herman <[email protected]> wrote:

>
>
> yes Mark :-) that looks easy and i will try it.
>
> Is it just as easy to *remove *a stock from the DB?
>
> I just like to replace all tickers in my trading DB with the new ones for
> the day, so that i don't exceed my streaming Ticker Quota.
>
> thanks for the expertise!!!
> herman
>
>
> Mark Hike wrote:
>
> Herman, that's something relatively easy to achieve.
> Here is a piece of code to add a new ticker to database.
> (It has no effect if the ticker already exists)
>
>     AB = CreateObject("Broker.Application");
>     Stocks_ = AB.Stocks;
>     Stock_ = Stocks_.Add(symol);
>     // AddToComposite won't work if datasource is not local
>     Stock_.DataSource = 1;
>
> - Mark
>
>
> On Fri, Oct 2, 2009 at 5:21 AM, Herman <[email protected]> wrote:
>
>>
>>
>> Is there anyway to load a Watchlists from a .tls file (using inline afl)
>> so that tickers that are not yet in the DB are automatically added?
>>
>> This would simplify a lot of my operations...
>>
>> Many thanks for any help you can give!
>> herman
>>
>
>   
>

Reply via email to