[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Autoupdate of quotes



PureBytes Links

Trading Reference Links

Hello,

   could osmeone help me? Based on Parkiet.com_1.30.zip and 
Bossa.pl_1.30[1].zip in Files in this Group I tried to make an 
autoupdate script, but doesn't work:

First:

ASCIIFormatFile = "als-moje web stranka.format";


AmiBroker = new ActiveXObject( "Broker.Application" );
WshShell = new ActiveXObject( "WScript.Shell" );

There is no problem i think. als-moje web stranka.format is a file in 
formats directory-it is OK.

1. Problem:

WshShell.Run( "C:\pokus\URLGet.exe http://akcie.vasweb.eu/data/spad-
vse.php c:\pokus\pokus.als", 0, true );

If i run(Start/Run) this - "C:\pokus\URLGet.exe 
http://akcie.vasweb.eu/data/spad-vse.php c:\pokus\pokus.als", manualy 
it is ok, but in this script(Run from amibroker) it breaks with the 
message that file can not be found-don't know why 

2. Problem
 
 When I create file c:\pokus\pokus.als manualy than if I run in 
script this:

	try
	{
		AmiBroker.Import( 0, "c:\pokus\pokus.als", 
ASCIIFormatFile );
	}
	catch( e )
	{
	WScript.echo("Faild" );
	}
	
AmiBroker.RefreshAll();

It looks like OK but does nothing:( 


So once more summary:

ASCIIFormatFile = "als-moje web stranka.format";


AmiBroker = new ActiveXObject( "Broker.Application" );
WshShell = new ActiveXObject( "WScript.Shell" );

WshShell.Run( "C:\pokus\URLGet.exe http://akcie.vasweb.eu/data/spad-
vse.php c:\pokus\pokus.als", 0, true );


try
 {
 AmiBroker.Import( 0, "c:\pokus\pokus.als", ASCIIFormatFile );
 }
catch( e )
 {
    WScript.echo("Update script finished. Your database is now up-to-
date" );
  }
	
AmiBroker.RefreshAll();

Why doesn't it work?? Thanks a lot for any advice;)





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Transfer from your equities account.  
Receive up to $1,000 from GFT. Click here to learn more.
http://us.click.yahoo.com/aZttyC/X_xQAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/