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

[amibroker] OLE Automation Interface Import



PureBytes Links

Trading Reference Links

Metaboxfan
Did you get an answer to your question?
I am attempting to use JScript (or VBScript) to select a database and import EOD data too and I can't get it to work. Nor can I find the section in the manual that describes what Type is in the Amibroker.Import() method. Does anyone else know how it is done?
 
Also, I was wondering if it was possible to delete all quotations for a given Date efficiently? The database in question has 1 minute bars and I wish to delete all bars from all tickers from that day. I can see that it is possible to step through individual quotations and delete single quotes.
 
regards
Shawky
 
 
 
-------Original Message-------
 
Date: 04/30/05 04:45:57
Subject: [amibroker] OLE Automation Interface Import
 
Hi group
I have the 3 files: ASCII-data file 803200.txt on y:\, Format file
test.format in \Formats and the script-file
test_1.vbs in \scripts.
How come test_1.vbs doesn't do the import?
Can somebody please help?
Thanks
 
--------------------------- y:\803200.txt --------------------------
803200,2005-04-01,16.72,17.18,16.72,17.04,547538
803200,2005-04-04,17.04,17.15,16.77,16.94,269542
803200,2005-04-05,16.98,17.04,16.95,16.95,229482
803200,2005-04-06,16.98,17.22,16.98,17.18,363166
803200,2005-04-07,17.14,17.42,17.14,17.35,547678
803200,2005-04-08,17.44,17.61,17.37,17.46,846960
803200,2005-04-11,17.60,17.94,17.57,17.91,913338
803200,2005-04-12,17.83,17.93,17.75,17.75,294630
803200,2005-04-13,17.90,18.04,17.88,18.01,538680
------------------------- EOF -------------------------------------
-------------------------- test.format ----------------------------
# Format definition file generated automatically
# by AmiBroker's ASCII Import Wizard
$FORMAT Ticker, Date_YMD, Open, High, Low, Close, Volume
$SKIPLINES 0
$SEPARATOR ,
$CONT 1
$GROUP 255
$AUTOADD 1
$DEBUG 1
-------------------------- EOF -------------------------------------
---------------------------- test_1.vbs ----------------------------
Set oAB = CreateObject("Broker.Application")
 
WScript.Echo( "Current path to database is" & vbCrLf &
oAB.DatabasePath )
 
if oAB.LoadDatabase("c:\programme\amibroker\data") = True then
  WScript.Echo( "succesfully loaded new database" )
end if
 
If oAB.Import(1,"Y:\803200.txt","test.format") = True then
  WScript.Echo("File succesfully loaded")
  oAB.RefreshAll()
end if
-------------------------------- EOF -------------------------------
 
 
 
 
 
 
 
 
------------------------ Yahoo! Groups Sponsor --------------------~-->
In low income neighborhoods, 84% do not own computers.
At Network for Good, help bridge the Digital Divide!
--------------------------------------------------------------------~->
 
Please note that this group is for discussion between users only.
 
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
 
For other support material please check also:
 
 
Yahoo! Groups Links
 
<*> To visit your group on the web, go to:
 
<*> To unsubscribe from this group, send an email to:
 
<*> Your use of Yahoo! Groups is subject to:
 
 
 
 


Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.html





Yahoo! Groups Links