PureBytes Links
Trading Reference Links
|
Hi,
I'm trying to plot the relative strength of a foreign ticker. The
code is below but the idea is to identify the group of the ticker in
question (in this case its the FTSE groups of FTSE100, FTSE Mid250,
FTSE AIM and FTSE Other) and compare the rel strength of this group
against the market as a whole (in my case thats ^FTAS - FTSE All
share). The plot title shows the group name but the plot itself is
for the ticker not the group.
Any suggestions?
MaxGraph=4;
forticker = "^FTAS";
forticker = WriteIf(GroupID() == 1, "^FTSE", forticker);
forticker = WriteIf(GroupID() == 2, "^FTMC", forticker);
forticker = WriteIf(GroupID() == 3, "^FTAI", forticker);
SetForeign(forticker);
FTASRS=RelStrength( "^FTAS" );
Graph0 = FTASRS;
Graph1 = MA(FTASRS,Prefs(4));
Graph2 = MA(FTASRS,Prefs(6));
Graph3 = MA(FTASRS,Prefs(28));
Graph0Style = Graph1Style = Graph2Style = Graph3Style = 1;
Graph0Color = 16;
Graph1Color = 32;
Graph2Color = 29;
Graph3Color = 43;
Title = Name() + " - Relative Strength to FTAS " + Date() + " = " +
WriteVal(Graph0, 1.2);
RestorePriceArrays();
Many thanks
Andy.
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~->
Check AmiBroker web page at:
http://www.amibroker.com/
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:
http://docs.yahoo.com/info/terms/
|