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

[amibroker] Ole question



PureBytes Links

Trading Reference Links

Hi,

I am trying to change the active chart in Amibroker through an excel 
macro. Any ideas on how to do this I have been experimenting with 
this macro What am I doing wrong?
Your help is greatly appreciated

Regards
Guno

Sub test23()

Set oAB = CreateObject("Broker.Application")
'Dim oAB As Broker.Application
Dim oStocks As Broker.Stocks
Dim oStock As Broker.stock

oAB.LoadDatabase ("D:\Program Files\AmiBroker\StockMarket")   ' Path 
to the AB Database on my D drive
  
       'Open the Chart in ABI
       'oAB.Documents.Open (CStr(IBM))
      Set oStock = oAB.Stocks.Item(IBM & "")

   oAB.SaveDatabase ' Save the DB
   'oAB.Quit
   Set oAB = Nothing


  End Sub




Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.14.13/546 - Release Date: 11/22/2006