PureBytes Links
Trading Reference Links
|
<FONT face=Arial color=#0000ff
size=2>Brian,
<FONT face=Arial color=#0000ff
size=2>
plot
the code offered below as an indicator. Select a stock and the indicator will
determine the correct industry group and plot it.
Regards,Jayson
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)<100<FONT
color=#282828 size=2>,l2,L3));<FONT color=#0000ff
size=2>
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
color=#0000ff size=2>
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
color=#0000ff size=2>
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);
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
size=2>
GraphXSpace<FONT
face=Arial>=3<FONT
color=#282828 size=2>;
<FONT face=Tahoma
size=2>-----Original Message-----From: Brian
[mailto:cadvantag@xxxxxxxxxxxxxx]Sent: Thursday, April 22, 2004
11:35 PMTo: amibroker@xxxxxxxxxxxxxxxSubject:
[amibroker] Indicator Help-I use QP data and I am
trying to get a indicator that will post a ticker and its associated
Industry Group (per QP).My problem is GetExtraData- will not grab a
Industry Group, and AddTextColumn is for Explorations.How can I
grab a tickers associated Industry Group and put this into a indicator and
plot the ticker and Industry group? Trying to compare a ticker's
strength verses its
industry.Thanks,BrianSend 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 Sponsor
ADVERTISEMENT
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.
|