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

Zerodha – Open Paperless Account

Open online account with Zerodha. Free delivery trading and Max Rs 20 for Intraday, F&O, Currency and Commodity Trading. Intraday High leverage with MIS, CO and BO.

Name:Phone:
Email:City:
State:
Are you a day trader?