Hello,
1. Does not matter, will accept any extension
2. You need to create import definition that matches your data for details see:
http://www.amibroker.com/guide/d_ascii.html
The import definition file will be automatically created by last page option of Import wizard:
http://www.amibroker.com/guide/w_impwizard.html
3. Imported data will be in your currently loaded DB as other data
4. No limit
Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: Herman
To: _AmiBroker
Sent: Wednesday, May 16, 2007 7:50 AM
Subject: [amibroker] Stuck using OLE to import data
I have a file:
TestFile = "C:\\Program Files\\AmiBroker\\CustomData\\TestFile001.txt";
with the following format (this example uses dummy data):
Ticker,Date/Time,Open,High,Low,Close,Volume
TestFile001,01/05/2007,1070501,1070501,1070501,1070501,732797
.... and more dates here ...
that i want to import using OLE:
AB = CreateObject("broker.application");
AB.Import(TestFile, "importdef");
1) Should the imported file have an extension?
2) What do I substitute for the "importdef" to make this work?
3) Where will the imported data be located in my DB?
4) Is there a limit to the date-range in my file, for example, will AB accept future dates that can be plotted?
your help will be much appreciated!
herman
|