Relative strength is a ratio between two assets, most often a stock and a market average (index). This implementation uses the method described here and the second method described here to calculate its value: "To calculate the relative strength of a particular stock, divide the percentage change over some time period by the percentage change of a particular...
This code is to replicate the relative strength indicator as used on investors.com (on lists like the IBD 50, big cap 20 etc). Let me know if any issues / any updates wanted.
Republished: The original script violated house rules by including an external link to Backtest Rookies. Background The currency strength indicator takes up to 4 forex pairs and calculates the average strength across all pairs. The indicator uses the pair's daily percentage change to calculate the overall strength. For flexibility, it can accept any...