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

Re: [amibroker] AMIBROKER.IMPORT why cant i use it from VB



PureBytes Links

Trading Reference Links


Hello Nick,
 
>but using>amibroker.Import(0, 
"stock.tmp", "ami.format")>just doesn't work.
You have to know that "stock.tmp" must belocated 
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.<A 
href="">http://www.amibroker.com
<BLOCKQUOTE 
>
----- Original Message ----- 
<DIV 
>From: 
NIck Iacovelli 

To: <A title=amibroker@xxxxxxxxxxxxx 
href="">amibroker@xxxxxxxxxxxxxxx 
Sent: Tuesday, July 03, 2001 2:10 
AM
Subject: [amibroker] AMIBROKER.IMPORT 
why cant i use it from VB
the  following VB codedoesnt work  
whySet amibroker = 
CreateObject("Broker.Application")amibroker.Import(0, "stock.tmp", 
"ami.format")amibroker.RefreshAllI know the createobject  
function worki can  see all the symbols refreshing in ami when irun 
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.Countbut i have a list of  ascii 
dataexample:  
"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,151600with 
the file "ami.format"$FORMAT Ticker, Date_MDY, Close, Open, High, Low, 
Volume$SKIPLINES 0$SEPARATOR ,$CONT 1$GROUP 255$AUTOADD 
1$DEBUG 1using the importer by hand  the data will 
importbut usingamibroker.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 3sec 
( a guess it  could  be 
faster)nickYour use of Yahoo! Groups is subject 
to the Yahoo! Terms of 
Service.