NexusFi: Find Your Edge


Home Menu

 





importing ieods in ami via jscript


Discussion in Platforms and Indicators

Updated
    1. trending_up 2,520 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 0 posts
    2. attach_file 0 attachments




 
Search this Thread

importing ieods in ami via jscript

  #1 (permalink)
sr114
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

Reply With Quote




Last Updated on October 15, 2012


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts