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],          "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          in this topic (2) Reply (via web post) | Start       
   a new topic 
         Messages          | Files          | Photos          
         
         .
         
     
     
---------------------------------
     Bring your gang together - do your thing. Start      your group.
      

---------------------------------
   Chat on a cool, new interface. No download required. Click    here.   
     
                  
                            
                    


               
       
---------------------------------
 Forgot the famous last words? Access your message archive online. Click here.

Reply via email to