PureBytes Links
Trading Reference Links
|
I was getting 200 current quotes via yahoo and was hoping the import would
automatically import it.
now i think it might be faster if i poke it in
i have ticker,date,close,open,high,low, volume
how can i pass the data from vb to ami
At 11:24 AM 7/3/2001 -0500, you wrote:
NO error number just a syntex error
i need a "=" sign
like c=amibroker.Import(0, "stock.tmp", "ami.format")
this alone is wrong
amibroker.Import(0, "stock.tmp", "ami.format")
At 03:39 PM 7/3/2001 +0200, you wrote:
>Hello,
>
>What error number (+description) do you get?
>Are you using Visual Basic, VBA or VBScript?
>
>Best regards,
>Tomasz Janeczko
>
>----- Original Message -----
>From: <mailto:nickhere@x...>NIck Iacovelli
>To: <mailto:amibroker@xxxxxxxxxxxxxxx>amibroker@xxxxxxxxxxxxxxx
>Sent: 03 July, 2001 15:16
>Subject: Re: [amibroker] AMIBROKER.IMPORT why cant i use it from VB
>
>It is
>still dont work.
>
>it also looking for c=amibroker.Import(0, "stock.tmp", "ami.format")
>by itself i get some error
>
>
>
>
>
>At 08:46 AM 7/3/2001 +0200, you wrote:
> >Hello Nick,
> >
> > >but using
> > >amibroker.Import(0, "stock.tmp", "ami.format")
> > >just doesn't work.
> >You have to know that "stock.tmp" must be located in the same directory as
> >the script
> >(current working directory).
> >While ami.format file must be located in "Formats" subdirectory of
> >AmiBroker's main folder
> >(where all other .format files are) - otherwise you have to specify a full
> >path to the file
> >in the Import function call.
> >
> >
> >Best regards,
> >Tomasz Janeczko
> >===============
> >AmiBroker - the comprehensive share manager.
> ><<<http://www.amibroker.com>http://www.amibroker.com>http://www.amibrok
er.com>http://www.amibroker.
> com
> >----- Original Message -----
> >From: <mailto:nickhere@x...>NIck Iacovelli
> >To: <mailto:amibroker@xxxxxxxxxxxxxxx>amibroker@xxxxxxxxxxxxxxx
> >Sent: Tuesday, July 03, 2001 2:10 AM
> >Subject: [amibroker] AMIBROKER.IMPORT why cant i use it from VB
> >
> >the following VB code
> >doesnt work why
> >
> >Set amibroker = CreateObject("Broker.Application")
> >amibroker.Import(0, "stock.tmp", "ami.format")
> >amibroker.RefreshAll
> >
> >
> >
> >I know the createobject function work
> >i can see all the symbols refreshing in ami when i run the program.
> >and these line are working to get a symbol list
> >
> > c = amibroker.stocks.Count
> > Open "stock.lst" For Output As #1
> > For a = 1 To c - 1
> > Print #1, amibroker.stocks(a).ticker
> > Next a
> > Close #1 c = amibroker.stocks.Count
> >
> >
> >
> >but i have a list of ascii data
> >
> >example: "stock.tmp"
> >"AXP","7/2/2001",39.51,39.00,39.95,38.60,4617800
> >"BA","7/2/2001",56.36,56.60,57.22,56.30,3339400
> >"C","7/2/2001",53.48,52.95,53.70,52.31,8862300
> >"CAT","7/2/2001",51.96,50.05,52.25,50.05,2065100
> >"DAVE","7/2/2001",9.93,9.73,9.99,9.71,151600
> >
> >with the file "ami.format"
> >$FORMAT Ticker, Date_MDY, Close, Open, High, Low, Volume
> >$SKIPLINES 0
> >$SEPARATOR ,
> >$CONT 1
> >$GROUP 255
> >$AUTOADD 1
> >$DEBUG 1
> >
> >
> >
> >using the importer by hand the data will import
> >
> >but using
> >amibroker.Import(0, "stock.tmp", "ami.format")
> >
> >just doesn't work.
> >
> >if this work I can update ami broker as fast as it can take to do a
> >standard import.
> >and in real time.
> >
> >testing shows the dow 30 list can be done in under 3 sec ( a guess
> >it could be faster)
> >
> >nick
> >
> >Your use of Yahoo! Groups is subject to the
> ><<<http://docs.yahoo.com/info/terms/>http://docs.yahoo.com/info/terms/>
http://docs.yahoo.com/info/terms/>Yah
> oo! Terms of Service.
> >
> >
> >Your use of Yahoo! Groups is subject to the
> ><<<http://docs.yahoo.com/info/terms/>http://docs.yahoo.com/info/terms/>
http://docs.yahoo.com/info/terms/>Yah
> oo! Terms of Service.
>
>Your use of Yahoo! Groups is subject to the
><<http://docs.yahoo.com/info/terms/>http://docs.yahoo.com/info/terms/>Yah
oo! Terms of Service.
>
>
>Your use of Yahoo! Groups is subject to the
><<http://docs.yahoo.com/info/terms/>http://docs.yahoo.com/info/terms/>Yah
oo! Terms of Service.
Your use of Yahoo! Groups is subject to the
<http://docs.yahoo.com/info/terms/>Yahoo! Terms of Service.
|