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

RE: [amibroker] COM commands for Metastock retrieve symbols



PureBytes Links

Trading Reference Links

Not presently..
 
BUT read this snippet from a post by Bruce Robinson:
 
AutoIt is a scripting language, but many functions are implemented in
an ActiveX DLL that is callable from script outside or inside of AB.
First you install the package, or just the component, AutoItX3.dll via
REGSVR32.  You can get it at -

http://www.autoitscript.com/autoit3/

Then, here's an example AFL script that resizes the main
AB window.

There is an issue, though.  First, the image size is obviously less
than the window size.  For example, in a 800x600 window with left
hidden workspace, toolbar at top and right, and a status bar at the
bottom - the PNG image size is 743x505. It would desirable to be able
to be able to control this directly.  One can come close
with AutoIt, though.

Anyway, here's the AFL/Script code that uses the AutoItX3 DLL -


EnableScript("vbscript");

<%

Set oAB            = CreateObject( "Broker.Application" )
Set oAutoIt       = CreateObject( "AutoItX3.Control" )

ABTitle            = "AmiBroker"

xpos                  = oAutoIt.WinGetPosX( ABTitle )
ypos                  = oAutoIt.WinGetPosY( ABTitle )
width                  = oAutoIt.WinGetPosWidth( ABTitle )
Height             = oAutoIt.WinGetPosHeight( ABTitle )

newwidth            = 800
newheight            = 600
oAutoIt.WinMove "AmiBroker", "", xpos, ypos, newwidth, newheight

oAB.RefreshAll()

%>


Looks like a nice workaround could be done via AutoIt.
 
d


From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of Richard Dale
Sent: Tuesday, March 21, 2006 10:23 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] COM commands for Metastock retrieve symbols

Does anyone know if there are any COM commands that can be run within a script to retrieve the symbols in a Metastock format database?
 
Scenario:  Every day there are usually a dozen or more stocks that change codes, get delisted etc. Rather than having to click File -> Database Settings -> Configure -> Retrieve Symbols to rescan all of the Metastock folders, I'd like to automate this because I have to run a script every day for market/group/industry/watchlist assignments anyway.
 
I'd like to do something like this:
AmiBroker = new ActiveXObject( "Broker.Application" );
AmiBroker.RetreiveMetasockSymbols();
 
 
Best regards,
Richard Dale.
Norgate Investor Services
- Premium quality Stock, Futures and Foreign Exchange Data for
  markets in Australia, Asia, Canada, Europe, UK & USA -
www.premiumdata.net


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





SPONSORED LINKS
Investment management software Real estate investment software Investment property software
Software support Real estate investment analysis software Investment software


YAHOO! GROUPS LINKS