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

Re: [amibroker] Automating Industry Composite Updates



PureBytes Links

Trading Reference Links

Just place them all into one AFL and scan on all stocks
You can control what symbol gets used for which industry using if statemetns
(just typed in these so hope no errors)
eg
if(industyid()==1) addtocomposite(c,"","~"+industryid(1),"C")
if(industyid()==2) addtocomposite(c,"","~"+industryid(1),"C")

or loop though the ones you want
for(n=0;n<=63;n++)
{
   if(industyid()==n) addtocomposite(c,"",~"+industryid(1),"C")
}
-- 
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://www.aflwriting.com



On 25/01/07, sdp_51 <psean@xxxxxxxx> wrote:
> Hey guys,
>
> I am constructing composite tickers at the moment for various
> industries/groups and I would like to know if there is a way to
> automatically run the scans on each group/industry based on various
> AFLs I have written instead of choosing the group in the definition
> of the scan at the time of scan.
>
> I know there is some sort of automation via JScript and/or VBScript
> but I am not all that familiar with them.  Or I could create one
> master AFL which would add individual ticker fields conditionally to
> a certain composite ticker field if industry="mychoice".
>
> Easier way:  Are we able to identify a ticker's industry via AFL as
> part of a scan?
>
> Harder way:  Are we able to automate the running of multiple scans on
> various groups using various AFLs?
>
> Thanks again,
> Sean
>
>
>
> 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
>
>
>
>

Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.17.9/650 - Release Date: 1/24/2007 4:06 PM