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

RE: [amibroker] Automatic overlay of Industry Index chart?



PureBytes Links

Trading Reference Links










<font size=2 color=black
face="Courier New"> 

<font size=2 color=black
face="Courier New">Graeme, try this, just nest the Writeif statements for the
different industry sectors. In mine sector 1 is energy, 0 is mining etc.

<font size=2 color=black
face="Courier New"> 

<font size=2 color=black
face="Courier New">sector = <span
lang=EN-AU >WriteIf<font
color=black face="Courier New">(<span
lang=EN-AU >SectorID<font
color=black face="Courier New">()==0,<span
lang=EN-AU >"xmj"<font
color=black face="Courier New">, <span
lang=EN-AU >WriteIf<font
color=black face="Courier New">( <span
lang=EN-AU >SectorID<font
color=black face="Courier New">()==<span
lang=EN-AU >1<font
color=black face="Courier New">,<span
lang=EN-AU >"xej"<font
color=black face="Courier New">, <span
lang=EN-AU >"xao" <font
color=black face="Courier New">)); //find sector codes for each stock

<font size=2 color=blue
face="Courier New">Plot<span
lang=EN-AU >(<font
color=red face="Courier New">C<span
lang=EN-AU >,<font
color=darkred face="Courier New">"Candle"<font color=black
face="Courier New">,<span
lang=EN-AU >colorBlack<font
color=black face="Courier New">,<span
lang=EN-AU >styleCandle<font
color=black face="Courier New">); //plot the stocks candle chart

<span lang=EN-AU
>PlotForeign<font
color=black face="Courier New">(sector,sector,<span
lang=EN-AU >colorBlue<font
color=black face="Courier New">,<span
lang=EN-AU >styleCandle<font
color=black face="Courier New">+<span
lang=EN-AU >styleOwnScale<font
color=black face="Courier New">);//overlay the stocks sector index



<font size=3 color=teal
face="Times New Roman">Cheers,
Graham

<font size=2
color="#339966" face="Times New Roman"><font
color="#339966">http://groups.msn.com/ASXShareTrading

<font size=2
color="#339966" face="Times New Roman"><font
color="#339966">http://groups.msn.com/FMSAustralia



<span
>-----Original Message-----
From: Graeme Oswin
[mailto:goswin@xxxxxxxxxxx] 
Sent: Monday, 19 May 2003 3:54 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Automatic
overlay of Industry Index chart?

<font size=2
face="Times New Roman"> 





<span
>Dear all,





<span
> 





<span
>As a relative newbie...I hope this
hasn't been asked a thousand times...





<span
> 





<span
>Is there a way to plot in the same
indicator window, a daily chart for a stock and an automatic Industry
Index chart for a particlar stock in Amibroker as defined in the Industry base
indexes?





<span
> 





<span
>eg: ASX Australia - Plot a
daily chart of ANZ Bank and overlay ASX Index XFJ, then swap to AMC (Amcor) and
automatically overlay the ASX Index XMJ.  





<span
> 





<span
>I want this to be dynamic, as I scan
through my Watch Lists.  I know I can use the PlotForeign command, but I
can't see how to dynamically plot an index chart.





<span
> 





<span
>I hope this makes sense.





<span
> 





<span
>Regards,





<span
> 





<span
>Graeme Oswin





<font size=2
face="Times New Roman">



Send
BUG REPORTS to bugs@xxxxxxxxxxxxx<span
>
Send 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


Your use of Yahoo! Groups is subject to the <a
href="">Yahoo! Terms of Service.











Yahoo! Groups Sponsor












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 the Yahoo! Terms of Service.