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 
amibroker@yahoogroups.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 in this 
topic           (2)                                          Reply           
(via web post)           |                     Start a new topic                
   
                                 Messages               |    Files              
 |    Photos                                                    
                                                         Please note that this 
group is for discussion between users only.
 
 To get  support from AmiBroker please send an e-mail directly to 
 SUPPORT {at} amibroker.com
 
 For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
 http://www.amibroker.com/devlog/
 
 For other support material please check also:
 http://www.amibroker.com/support.html
                            
                                   
       Change settings via the Web (Yahoo! ID required) 
       Change settings via email: Switch delivery to Daily Digest | Switch 
format to Traditional 
                 Visit Your Group         |                Yahoo! Groups Terms 
of Use       |                Unsubscribe            
        
                                                 Recent Activity
                          
           40
       New Members
                                                                                
  
                      Visit Your Group           
                                                                          
Yahoo! News
  Odd News
  You won't believe
  it, but it's true
                  
                                            Yahoo! Finance
  It's Now Personal
  Guides, news,
  advice & more.
                   
                                            Featured Y! Groups
  and category pages.
  There is something
  for everyone.
                  
           
        
      .


       
---------------------------------
 Bring your gang together - do your thing.  Start your group.

Reply via email to