Skip to main content

RS - Relative Strength explorer for Amibroker (AFL)

nareshpriya almost 11 years ago Amibroker (AFL)

  • Rating:
    3 / 5 (Votes 6)
  • Tags:
    amibroker, relative strength

Relative strength is a measure of the price trend of a stock or other financial instrument compared to another stock, instrument or industry. It is calculated by taking the price of one asset and dividing it by another.

check following links for better understanding.

http://www.investopedia.com/ask/answers/06/relativestrength.asp

http://stockcharts.com/school/doku.php?id=chart_school:technical_indicators:price_relative

when using this afl, please change the RS base ticker in parameters to your desired index.
presently we have given “NIFTY-I” which is national stock exchange (NSE-INDIA) index


SHORT LOWER VALUE OF relative strength
LONG HIGHER VALUE OF relative strength
-——————————————————

Screenshots

Indicator / Formula

Copy & Paste Friendly
_SECTION_BEGIN("RS");
base = ParamStr("RS base ticker", GetBaseIndex() );
Plot( RelStrength(base), _SECTION_NAME() + "(" + base + ")", ParamColor( "color", colorCycle ), ParamStyle("Style")  );
_SECTION_END();

5 comments

almost 11 years ago

this is a scanner. one that u have in amibroker plots graph only. with this afl, u can scan the chart in different time frames like hrly daily or weekly and take decisions. anyway no issues. next time. btw thx for keeping the site clean and free from spam :)

about 5 years ago

getting Error with this Code LN:4, Col:22

error 21

Relative strength base symbol not found

Leave Comment

Please login here to leave a comment.