send me you script, format file, and quotes.csv file and I'll try to figure it out. d
_____ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of inv learn Sent: Thursday, March 13, 2008 4:12 PM To: [email protected] Cc: [EMAIL PROTECTED] Subject: RE: [amibroker] Quote import not working - help needed - Tomasz please help dingo thanks for your suggestion of checking import.log for debugging. when i import quotes manually, the quotes appear inside just fine ; but with the import script it does not. import.log has only one line " Logging started for 'data\datacol.csv' file, using format definition file 'Formats\new1.format' " . i greatly appreciate any input here - i cannot make any sense of why the quotes appear fine when i import manually but when i do it using the script i neither get any errors nor do I see the quotes in amibroker. thanks for your help, invlearn dingo <[EMAIL PROTECTED]> wrote: Does it work when you import manually? Try deleting import.log before you try it and then check to see if there were any errors. d _____ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of inv learn Sent: Friday, March 07, 2008 10:26 AM To: [email protected] Subject: [amibroker] Quote import not working - help needed ( Moderator plz allow message to go through ) hello everyone and Tomasz please help - i am stuck and don't know how to proceed from here. i have read the entire ami objexts guide, but i am still not getting any results. i have written a script to import quotes into amibroker, but the quotes don't appear in ami and I dont get any error messages either. is there somethig i am doing wrong, or is it that this method cannot be used anymore? references : http://www.amibroker.com/guide/objects.html and http://www.amibroker.com/newsletter/02-2001.html please provide your input, i am at a roadblock here. import.js -> importquotes(); function importquotes() { filename = "C:\\myquotes\\quotes.csv"; AmiBroker = new ActiveXObject("Broker.Application" ); AmiBroker.Import( 0, filename, "new1.format" ); AmiBroker.RefreshAll(); } thank you very much, -invlearn inv learn <[EMAIL PROTECTED]> wrote: hello everyone, i have written a script to import quotes into amibroker, but the quotes don't appear in ami and I dont get any error messages either. is there somethig i am doing wrong, or is it that this method cannot be used anymore? references : http://www.amibroker.com/guide/objects.html and http://www.amibroker.com/newsletter/02-2001.html please provide your input, i am at a roadblock here. import.js: importquotes(); function importquotes() { filename = "C:\\myquotes\\quotes.csv"; AmiBroker = new ActiveXObject("Broker.Application" ); AmiBroker.Import( 0, filename, "new1.format" ); AmiBroker.RefreshAll(); } thanks, -invlearn inv learn <[EMAIL PROTECTED]> wrote: thanks tuzo. for some reason, that didnt work for me either... tuzo_wilson <[EMAIL PROTECTED]> wrote: --- In [EMAIL PROTECTED] <mailto:amibroker%40yahoogroups.com> ps.com, "invlearn" <[EMAIL PROTECTED]> wrote: > so i am stuck with writing a script to automatically import quotes > into ami, i dont see the updated quotes in ami after i run the script, > even though i dont get any errors in running the script. please > provide guidance. Try AmiBroker.SaveDatabase() after importing all files. I've also seen situations where multiple broker.exe processes exist and the current broker.exe UI does not update. So, now I launch all scripts from within AmiBroker via Custom Tools menu items. Tuzo > script : > > importMyData(); > function importMyData() > { > quotefile = "quotes.csv" > > AmiBroker = new ActiveXObject( "Broker.Application" ); > > AmiBroker.Import( 0, quotefile, "myformat.format" ); > AmiBroker.RefreshAll(); > AmiBroker.SaveDatabase(); > } Messages <http://groups.yahoo.com/group/amibroker/message/120113;_ylc=X3oDMTM4OTZrYTg 1BF9TAzk3MzU5NzE0BGdycElkAzEwMTA2OTIEZ3Jwc3BJZAMxNzA1NjMyMTk4BG1zZ0lkAzEyMDE xNARzZWMDZnRyBHNsawN2dHBjBHN0aW1lAzEyMDM0NjgwMjMEdHBjSWQDMTIwMTEz> in this topic (2) <http://groups.yahoo.com/group/amibroker/post;_ylc=X3oDMTJybGxybmZoBF9TAzk3M zU5NzE0BGdycElkAzEwMTA2OTIEZ3Jwc3BJZAMxNzA1NjMyMTk4BG1zZ0lkAzEyMDExNARzZWMDZ nRyBHNsawNycGx5BHN0aW1lAzEyMDM0NjgwMjM-?act=reply&messageNum=120114> Reply (via web post) | Start <http://groups.yahoo.com/group/amibroker/post;_ylc=X3oDMTJlaGdhbTV1BF9TAzk3M zU5NzE0BGdycElkAzEwMTA2OTIEZ3Jwc3BJZAMxNzA1NjMyMTk4BHNlYwNmdHIEc2xrA250cGMEc 3RpbWUDMTIwMzQ2ODAyMw--> a new topic Messages <http://groups.yahoo.com/group/amibroker/messages;_ylc=X3oDMTJlcHVsMmNsBF9TA zk3MzU5NzE0BGdycElkAzEwMTA2OTIEZ3Jwc3BJZAMxNzA1NjMyMTk4BHNlYwNmdHIEc2xrA21zZ 3MEc3RpbWUDMTIwMzQ2ODAyMw--> | Files <http://groups.yahoo.com/group/amibroker/files;_ylc=X3oDMTJmZGhobTNqBF9TAzk3 MzU5NzE0BGdycElkAzEwMTA2OTIEZ3Jwc3BJZAMxNzA1NjMyMTk4BHNlYwNmdHIEc2xrA2ZpbGVz BHN0aW1lAzEyMDM0NjgwMjM-> | Photos <http://groups.yahoo.com/group/amibroker/photos;_ylc=X3oDMTJlYTl0bDh2BF9TAzk 3MzU5NzE0BGdycElkAzEwMTA2OTIEZ3Jwc3BJZAMxNzA1NjMyMTk4BHNlYwNmdHIEc2xrA3Bob3Q Ec3RpbWUDMTIwMzQ2ODAyMw--> . _____ Bring your gang together - do your thing. Start <http://in.rd.yahoo.com/tagline_groups_2/*http://in.promos.yahoo.com/groups> your group. _____ Chat on a cool, new interface. No download required. Click <http://in.rd.yahoo.com/tagline_webmessenger_10/*http://in.messenger.yahoo.c om/webmessengerpromo.php> here. _____ Forgot the famous last words? Access your message archive online. Click <http://in.rd.yahoo.com/tagline_webmessenger_4/*http://in.messenger.yahoo.co m/webmessengerpromo.php> here.
