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

[amibroker] Re: select a ticker



PureBytes Links

Trading Reference Links

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.




------------------------ 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/