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

[amibroker] Re: Loops / AFL - AB ver 4.53



PureBytes Links

Trading Reference Links




<FONT face=Arial color=#0000ff 
size=2>Geoff,
The 
code below will plot the correct Industry group index for each stock. select 
CSCO and its industry group index plots. Keep in mind that QP updates industry 
groups weekly so I have used timeframe to show the index in weekly. This should 
provide a frame work for what you are after... 
 
Regards, 
Jayson 
 <FONT 
color=#282828 size=2>
L1=<FONT 
color=#0000ff>"!ID00"+<FONT 
size=2>IndustryID(<FONT 
size=2>0<FONT face=Arial 
color=#0000ff>);
L2=<FONT 
color=#0000ff>"!ID0"+<FONT 
size=2>IndustryID(<FONT 
size=2>0<FONT face=Arial 
color=#0000ff>);
L3=<FONT 
color=#0000ff>"!ID"+<FONT 
size=2>IndustryID(<FONT 
size=2>0<FONT face=Arial 
color=#0000ff>);
industry=<FONT 
face=Arial>WriteIf<FONT 
size=2>(IndustryID(<FONT 
size=2>0) <10<FONT 
size=2>,l1,WriteIf(<FONT 
size=2>IndustryID(0<FONT 
size=2>)>9 <FONT 
size=2>AND<FONT 
size=2> IndustryID(<FONT 
size=2>0)<<FONT 
size=2>100<FONT face=Arial 
color=#0000ff>,l2,L3));
SetForeign<FONT 
face=Arial>(industry);
TimeFrameSet<FONT 
color=#282828 size=2>(inWeekly<FONT 
color=#282828 size=2>);<FONT color=#0000ff 
size=2>
Plot<FONT color=#282828 
size=2>(C<FONT 
color=#282828 size=2>,IndustryID<FONT 
color=#282828 size=2>(1<FONT 
color=#282828 size=2>),colorWhite<FONT 
face=Arial>,<FONT color=#ff00ff 
size=2>64<FONT 
face=Arial>);
Plot<FONT color=#282828 
size=2>(MA<FONT color=#282828 
size=2>(C<FONT 
color=#282828 size=2>,20<FONT 
color=#282828 size=2>),""<FONT 
color=#282828 size=2>,colorBlue<FONT 
face=Arial>,<FONT color=#ff00ff 
size=2>1<FONT 
face=Arial>);
Plot<FONT color=#282828 
size=2>(MA<FONT color=#282828 
size=2>(C<FONT 
color=#282828 size=2>,50<FONT 
color=#282828 size=2>),""<FONT 
color=#282828 size=2>,colorYellow<FONT 
face=Arial>,<FONT color=#ff00ff 
size=2>1<FONT 
face=Arial>);
Title<FONT 
color=#0000ff>="Industry Group = "<FONT 
size=2>+IndustryID(<FONT 
size=2>1)+ " ("<FONT 
size=2>+industry+")"+<FONT 
size=2>"\n Today "+WriteVal<FONT 
size=2>(ROC(<FONT 
size=2>C,1<FONT 
size=2>),1.2)+<FONT 
size=2>"%"<FONT face=Arial 
color=#0000ff>;
GraphXSpace<FONT 
face=Arial>=3<FONT 
color=#282828 size=2>;
<FONT color=#282828 
size=2> 
<FONT face=Tahoma 
size=2>-----Original Message-----From: grmulhall 
[mailto:geoffmulhall@xxxxxxxxxxxxxxx]Sent: Wednesday, March 31, 2004 
7:07 AMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] 
Quotes PlusHi,Is there an easy way to assign 
the correct index to the industry groups so that relative strengths are 
correctly calculated/displayed 
?Thanks,GeoffSend BUG REPORTS to 
bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
suggest@xxxxxxxxxxxxx-----------------------------------------Post 
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
group FAQ at: <A 
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 



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








Yahoo! Groups Links
To visit your group on the web, go to:http://groups.yahoo.com/group/amibroker/ 
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.