--- In
amibroker@xxxxxxxxxps.com, "invlearn" <invlearn@xx
.> 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();
> }
.