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

RE: [amibroker] Re: select a ticker



PureBytes Links

Trading Reference Links

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





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