PureBytes Links
Trading Reference Links
|
The problem is you cannot use COM to "select" a ticker. Unfortunately
the AB Object Model will open a new window every time you execute the
following:
Set oAB = New Broker.Application
Set oABD = oAB.Documents
oABD.Open ("HD") 'Open Ticker opens a new window
Set oABD = Nothing
Set oAB = Nothing
I would like to "select" a ticker rather than open a new window every
time I need a different ticker. Also, the same AB Object Model opens
a new window if you write the code in jscript, wscript, or VB.
--- In amibroker@xxxxxxxxxxxxxxx, "dingo" <dingo@xxxx> wrote:
> so, what IS your objective? You haven't really stated it afaik.
>
> d
>
>
> _____
>
> From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx]
On Behalf
> Of rsmith_den
> Sent: Tuesday, July 12, 2005 9:31 AM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Re: select a ticker
>
>
> Dear JOE,
> It looked very promising, but unfortunatly I'm getting the same
> additional window after executing the code. Following your example,
I
> translated the WScript code into the VB code:
>
> Dim oABD
>
> Set oAB = New Broker.Application
>
> Set oABD = oAB.Documents
>
> oABD.Open ("HD") 'Open Ticker Home Depot
>
> Set oABD = Nothing
>
> Set oAB = Nothing
>
> After going through the motions of various COM code,I have a feeling
> I may have to use a means other than COM to achieve my objective. I
> also tried executing a similar jscript and got the same results.
> Thanks JOE for the reply.
>
>
> --- In amibroker@xxxxxxxxxxxxxxx, "rsmith_den" <rls_jls@xxxx> wrote:
> > Is there a way to use the Amibroker Object Model to select a
ticker
> > as opposed to opening a ticker. I am using the following VBA code
to
> > open a ticker and all this does is open a bunch of new windows in
> my
> > AB 4.60. VBA code:
> >
> > Dim oAB As Broker.Application
> > Set oAB = New Broker.Application
> > Set oStocks = oAB.Stocks
> >
> > StockQty = oAB.Stocks.Count
> >
> > For i = 1 to StockQty
> > oStock = oStocks(i).Ticker
> > oAB.Documents.Open (oStock) 'Opens new window
> > ' blah bla blah
> > Next i
> >
> > I would to select a ticker to open rather than open all these new
> > windows.
>
>
>
>
> 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
>
>
>
> * Visit your group "amibroker
> <http://groups.yahoo.com/group/amibroker> " on the web.
>
>
> * To unsubscribe from this group, send an email to:
> amibroker-unsubscribe@xxxxxxxxxxxxxxx
> <mailto:amibroker-unsubscribe@xxxxxxxxxxxxxxx?subject=Unsubscribe>
>
>
> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service
> <http://docs.yahoo.com/info/terms/> .
>
>
> _____
------------------------ Yahoo! Groups Sponsor --------------------~-->
Try Online Currency Trading with GFT. Free 50K Demo. Trade
24 Hours. Commission-Free.
http://us.click.yahoo.com/DldnlA/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/
|