Kolkata+India
Posts: 27 since Aug 2012
Thanks Given: 10
Thanks Received: 1
|
trying to use the jscript for importing ioeds into amibroker but failed every time
the ieod data format is : Date_DMY, time(HH:mm:ss), Open, High, Low, Close, Volume and a respective format file has been prepared (import.format)
the code i am using is the following
/*
** AmiBroker/Win32 scripting
**
** File: ImportQuotes.js
** Created:
** Purpose: Import quotes from a text file into a AmiBroker DataBase
** Language: JScript
*/
/* Create AmiBroker object */
AB = new ActiveXObject("Broker.Application");
AB.LoadDatabase("C:\\ABDataBase\\");
AB.Import( 0, "C:\\gold.csv.", "import.format" );
AB.RefreshAll();
AB.SaveDataBase();
AB.Quit();
WScript.Echo("Create DataBase finished" );
the problem is that the database is created with blank or no scrip
the data format are
Date_DMY,Time,Open ,High ,Low ,Close , Vol
13/10/2012,10:01:00 ,31250.00,31263.00,31242.00,31263.00,40
12/10/2012,10:02:00 ,31263.00,31267.00,31261.00,31262.00,11
12/10/2012,10:03:00 ,31262.00,31267.00,31262.00,31267.00,30
12/10/2012,10:04:00 ,31267.00,31272.00,31265.00,31272.00,20
12/10/2012,10:05:00 ,31272.00,31275.00,31272.00,31274.00,13
12/10/2012,10:06:00 ,31274.00,31278.00,31274.00,31277.00,18
please help me
sr
|