Hi all,

  I am a complete newbie with AMIBroker and I'm trying some stuff using the 
evaluation version before purchasing.  I am trying to write a very simple VB 
2008 program to communicate with the DB via OLE.

  The program just tries to add a ticker to the DB (see below).  When I run it, 
I see that the new ticker I add seems to be added to the DB, as the 
GetTickerList returns the ticker list correctly updated.  However, if I open 
AMIBroker itself, I do not see the ticker if I look to the Symbols->All tab.  
Am I missing something?  Or is it because I am using a evaluation 
(non-registered) version ?

  I want to get a good grasp of the OLE interface before I purchase AMIBroker, 
as I am planning to make good use of it so I wat to make sure I can use it.

The program:

Module TestAMI
    Sub Main()
        ' Get ActiveX object for AMIBroker
        Dim oAB As Object
        oAB = CreateObject("Broker.Application")

        ' Try to access DB
        oAB.Stocks.Add("TEST")
        oAB.RefreshAll()
        System.Console.Write(oAB.Stocks.GetTickerList(0))
    End Sub
End Module


Thanks a lot in advance
Bass

Reply via email to