IBD Style Relative Strength

I have searched the forum and not seeing this, but looking to create a scan whereby one can create an IBD style relative strength calculation that ranks stocks among themselves. The closest I am seeing is RIC (), but that appears to be done at an index level.

The IBD calc is:

StrengthFactor = 0.4 * ROC(C, 63) + 0.2 * ROC(C, 126) + 0.2 * ROC(C, 189) + 0.2 * ROC(C,252)

A percentage rank would be done on the StrengthFactor, but I do not see this function.

Can Optuma perform a similiar calculation? If not, what suggestions regarding the closest corollary to this?

Thanks in advance,


1 Like

Hi Eric,

Here’s a script that will calculate the raw strength factor:

0.4 * ROC(BARS=63) + 0.2 * ROC(BARS=126) + 0.2 * ROC(BARS=189) +
0.2 * ROC(BARS=252)

It’s not possible to perform a percentage rank in the watchlist (unless you export to Excel) but you can group the column by decile, quartile, or a defined number of bins.

Save and open the workbook example for the S&P100 grouped in to Strength Factor deciles:

Strength Factor.owb (55.5 KB)

1 Like

Great - thank you very much. Exceedingly helpful!

1 Like

Thanks for that Darren. Most interesting. I could this quite useful.



1 Like

Coming back to this, is there any ranking function at all within the scanner? I prefer to scan across the entire US market and seeking to minimize the number of symbols that enter the linked watchlist.

Hi Eric,

You can use the Scanning Manager but it only returns true conditions, not a rank. So you would need to come up with a value to use as a cutoff, eg for a score above 50 use this:

R1=0.4 * ROC(BARS=63) + 0.2 * ROC(BARS=126) + 0.2 * ROC(BARS=189) +
0.2 * ROC(BARS=252);
R1 > 50

You can then open the results as a watchlist and add columns, charts, etc and then save the workbook. When you open the workbook it will run the scan and update the list automatically as it is linked to the scan file:

Thank you Darren. As I am still learning Optuma, I wanted to ensure I wasn’t missing anything.