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

RE: [amibroker] Script to automate scanning



PureBytes Links

Trading Reference Links

Probaby not easily.
And difficult to add new files to be scanned without modification everytime.
 

Paul Ho

 


From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of Graham
Sent: Wednesday, 27 July 2005 6:38 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: [amibroker] Script to automate scanning

I presume you can't just have the 3 scans running in one afl, even if
compiled into master AFL using #Include ? Then you could use the built
in timer for scanning

On 7/27/05, Paul Ho <paultsho@xxxxxxxxxxxx> wrote:
> Hi,
> I have written a js script that automate scanning a number of afl files
> every minute.
> I want a way to get out of the loop based on some kind of user input.
> So I came up with the idea that user click on "cancel" during a scan,  but
> this is where I'm stuck, because I dont know how this can be detected.
> I tried using the return value of scan(), but no luck. Can anybody help?

> Ami = new ActiveXObject( "Broker.Application" );
> AA = Ami.analysis;
> for(i = 1; i <= 1000; i++)
> {
>  AA.LoadFormula("Formulas\\systems\\foreverUv5.afl");
>  result = AA.scan();
>  if (result) break;
>  AA.LoadFormula("Formulas\\systems\\DailyComposite.afl");
>  result = AA.scan();
>  if (result == 0) break;
>  AA.LoadFormula("Formulas\\systems\\BB squeezeV3.afl");
>  result = AA.scan();
>  if (result == 0) break;
>  WScript.sleep(60000);
> }

>
> Paul Ho
>
> 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 other support material please check also:
> http://www.amibroker.com/support.html
>
>
>
>
>
> SPONSORED LINKS
> Investment management software Investment property software Investment
> software
> Investment tracking software Return on investment software Stock investment
> software
> ________________________________
> YAHOO! GROUPS LINKS
>
>  Visit your group "amibroker" on the web.
>  
>  To unsubscribe from this group, send an email to:
>  amibroker-unsubscribe@xxxxxxxxxxxxxxx
>  
>  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>  To unsubscribe from this group, send an email to:
>  amibroker-unsubscribe@xxxxxxxxxxxxxxx
>  
>  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
> ________________________________
>


--
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://e-wire.net.au/~eb_kavan/ab_write.htm


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 other support material please check also:
http://www.amibroker.com/support.html





YAHOO! GROUPS LINKS