Code for Relative Strength (comparative)

murthyavr

Well-Known Member
#1
The indicator Relative Strength is heard to be used for comparing a particular stock with another stock/group/index.

The original code available in Amibroker is as under:

base = ParamStr("RS base ticker", GetBaseIndex() );
Plot( RelStrength(base), _SECTION_NAME() + "(" + base + ")", ParamColor( "color", colorCycle ), ParamStyle("Style") );

If I want to compare the performance of say - RELIANCE with the performance of NIFTY, what changes should I make to the above code?

Q2: Can this indicator be used for intraday data also?

Thanks in advance..

Murthy
 

Similar threads