PureBytes Links
Trading Reference Links
|
Hello,
It can be written also much shorter using AFL - only (requires 4.36 or higher)
function GetQPIndustrySym()
{
in = IndustryID();
if( in < 10 )
result = "!ID00" + in;
else
if( in < 100 )
result = "!ID0" + in;
else
result = "!ID" + in;
return result;
}
Filter = 1;
indsym = GetQPIndustrySym();
AddTextColumn( indsym, "Industry avg Symbol" );
AddColumn(C, "Close", 1.2);
AddColumn( IndustryID(), "IndustryID", 1.0);
AddColumn( Foreign( indsym, "C"), "Close of Industry avg" );
Best regards,
Tomasz Janeczko
amibroker.com
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get A Free Psychic Reading! Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/Lj3uPC/Me7FAA/uetFAA/GHeqlB/TM
---------------------------------------------------------------------~->
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|