PureBytes Links
Trading Reference Links
|
Dear Stephane,
I don't know in what language you will be writing your plug in.
In case of Visual C++ you have two choices:
a) use native COM support by #import directive
#import "C:\...path...to....\broker.tlb"
(the Type Library available on request)
b) use COleDispatchDriver wrapper class to access AmiBroker's objects
In case of Visual Basic it is somewhat simpler (very similar to VBScript):
Dim oAB As Object
Set oAB = CreateObject("Broker.Application")
Dim oStock As Object
Set oStock = oAB.Stocks("ticker")
' to access quotations use Quotations collection
oStock.Quotations.Count
Please tell me what is the language of your choice.
Best regards,
Tomasz Janeczko
===============
AmiBroker - the comprehensive share manager.
http://www.amibroker.com
----- Original Message -----
From: "Stephane Carrasset" <nenapacwanfr@xxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Wednesday, October 31, 2001 6:21 PM
Subject: [amibroker] Re: Security Function
> Tz,
>
> can I hope any sample for christmas ?
>
>
> Stephane
> >
> > Yes you can access complete database using
> > AmiBroker's COM interface.
> >
> > When calling COM interface from DLL (inproc server)
> > (like plugin DLL or ActiveX) the speed is several hundreds
> > times better than calling it from outproc server (another EXE).
> >
> > Best regards,
> > Tomasz Janeczko
> > ===============
> > AmiBroker - the comprehensive share manager.
> > http://www.amibroker.com
> >
> >
> > ----- Original Message -----
> > From: "Stephane Carrasset" <nenapacwanfr@xxxx>
> > To: <amibroker@xxxx>
> > Sent: Wednesday, October 31, 2001 3:13 PM
> > Subject: [amibroker] Security Function
> >
> >
> > >
> > > Hi, all & Tz
> > >
> > > If I want to trade and follow only 20 stocks ( 20 is an example
> > > number)
> > > and If I want create the index with these 20 stocks,
> > > I need to call the price ( Close, high, low) for every stock in
> an
> > > AFL formula.
> > >
> > > the foreign function is not usefull for this purpose
> > > ""These functions allow you to use other security prices in the
> AFL
> > > formula. Although they are not so useful for tasks requiring
> prices
> > > of all stocks (or a large number of stocks) because one would
> need to
> > > type several hundreds of Foreign() function calls to do so. ""
> > >
> > > QUESTION: is it possible through the Ami dev kit, with c++, to
> call
> > > the price of several stocks??? and built my own index?
> > >
> > > Stephane
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
> > >
> > >
> > >
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
|