I found one error (URLPrefix + filename), but still doesn't working.
DownloaderPrg = "URLGet.exe";
filename = "rts.aqh";
URL = "http://myserver.com/";
AmiBroker = new ActiveXObject( "Broker.Application" );
WshShell = new ActiveXObject( "WScript.Shell" );
function Download( URL, filename )
{
if( WshShell.Run( DownloaderPrg + " " + URL + " " + filename, 0, true )
== 0 ) return true;
WScript.echo("Download of " + URL + " failed." );
return false;
}
function Import( filename )
{
AmiBroker.Import( 0, filename, "aqh.format" );
AmiBroker.RefreshAll();
}
--- In [email protected], "smrcek18" <smrce...@...> wrote:
>
> Hello,
>
> I have made an online AQH file (PHP script) that gets EOD data from the local
> stock exchange website. I would like that Amibroker would automatically
> download and update quotes and alerted me with an email if there is a signal.
>
> I read this article on downloading quotes automatically to Amibroker:
> http://www.amibroker.com/newsletter/02-2001.html
>
> Since this is an example from 2001... is this still working or is there any
> better solution? The sample above uses URLGet program (for downloading AQH
> file to local machine) and javascript file (importing and updating quotes in
> Amibroker). What about Amiquote, is it possible to enter custom path to
> online AQH file in and then refresh in Amibroker?
>
> Smrcek
>