| 
 RSMITH  
This is just a snippet, works in jScript and 
should be close to what you need in VB, setting the property to  
the Russelll 2000 (my symbol in QP3 is !rut) 
and then confirm that it is the stock you intend.  
.  
Also , in debugging you can see the AA 
window change as this script is run also with the Echo statement. 
 
  
JOE  
  
  
/********************    
Create the DOCUMENTS Object */ var oABD = oAB.Documents; var ticker = 
"!RUT";      oABD.Open(ticker);   // Point to 
!rut     Open_Ticker = 
oAB.ActiveDocument.Name; //    WScript.Echo ("Current Stock = 
" + Open_Ticker ); 
  ----- Original Message -----  
  
  
  Sent: Monday, July 11, 2005 4:51 PM 
  Subject: [amibroker] select a 
ticker 
  
  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
 
 
  ---- LSpots keywords ?>---- HM ADS ?>
  
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 
 
  
---- LSpots keywords ?>
  ---- HM ADS ?>
  
 
  
    
  YAHOO! GROUPS LINKS
 
 
    
  |