PureBytes Links
Trading Reference Links
|
Richard,
You can use the Stocks collection to retrieve a list of stocks in an
AmiBroker database. (See automation object model in AmiBroker
reference guide for more information)
A short VBScript example, save in file with a vbs extension.
Dim oAB
Dim oStocks, oStock
Dim i, StockCount
Dim ticker
Set oAB = CreateObject("Broker.Application")
Set oStocks = oAB.Stocks()
StockCount = oStocks.Count
for i = 0 to 2 'oStocks.Count
set oStock = oStocks.Item(i)
msgbox oStock.Ticker
next
etc.
Regards,
William Peters
http://www.amitools.com
Tuesday, March 21, 2006, 10:22:49 PM, you wrote:
RD> Does anyone know if there are any COM commands that can be
RD> run within a script to retrieve the symbols in a Metastock format
RD> database?
RD>
RD> Scenario: Every day there are usually a dozen or more
RD> stocks that change codes, get delisted etc. Rather than having to
RD> click File -> Database Settings -> Configure -> Retrieve Symbols
RD> to rescan all of the Metastock folders, I'd like to automate this
RD> because I have to run a script every day for
RD> market/group/industry/watchlist assignments anyway.
RD>
RD> I'd like to do something like this:
RD> AmiBroker = new ActiveXObject( "Broker.Application" );
RD> AmiBroker.RetreiveMetasockSymbols();
RD>
RD>
RD> Best regards,
RD> Richard Dale.
RD> Norgate Investor Services
RD> - Premium quality Stock, Futures and Foreign Exchange Data for
RD> markets in Australia, Asia, Canada, Europe, UK & USA -
RD> www.premiumdata.net
------------------------ Yahoo! Groups Sponsor --------------------~-->
Try Online Currency Trading with GFT. Free 50K Demo. Trade
24 Hours. Commission-Free.
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/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/
|