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

[amibroker] Relative Strength Plots vs. Telechart Industry and Subindustry Composites



PureBytes Links

Trading Reference Links

Here's some simple code for Telechart users who may want to plot 
relative strength versus the industry (sector) and subindustry 
(industry) composites in the same chart pane. This assumes that you 
have the relative strength base defined for each Telechart subindustry 
(Amibroker industry) in the Amibroker categories dialog and that the 
higher-level category (market and group) bases are blank.

If anyone has an idea how to define these bases without requiring that 
the higher level bases are blank, it would make the code a bit more 
versatile.

Hope it is of help to someone.

//////////////////////////////////////////////////////////////

IndustryBase = GetBaseIndex();
Plot(Prec(RelStrength (IndustryBase),2), "RS vs Industry Base", 
colorBlack, styleDots | styleThick);

SectorBase = StrLeft(IndustryBase, 4) + NumToStr(0,1.0);
Plot(Prec(RelStrength (SectorBase),2), "RS vs Sector Base", 
colorGrey40, styleDots | styleThick | styleOwnScale);

Title =  StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}}") + "          
Sector Base: "     + SectorID(1) + "  (" + SectorBase + ")" 
+ "          Industry Base: "     + IndustryID(1) + "  (" + 
IndustryBase + ")" 
/*+ "\nSECTOR = "+ SectorID(1) + "    INDUSTRY = "+IndustryID(1)*/;






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For other support material please check also:
http://www.amibroker.com/support.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/