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

Re: [amibroker] Loading watchlists from .tls files



PureBytes Links

Trading Reference Links



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 <psytek@xxxxxxxx> 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




__._,_.___


**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/





Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___