Thanks for the reply, Glenn.
For the time being I'm using only end-of-day price data, look at the ratio of an individual stock price to a prevailing index over a period of 5 years (ex: IBM/SP500). Then I try to identify situations where this ratio (relative to its mean over the period) is "too high" or "too low" (that is, where the stock is overbought or oversold).
So, I'd like to do the same thing with valuation ratios, like PE, DY, and PB.
To expand on the above example, for PE, it would be IBM(PE)/SP500(PE). And I aim to try the same method.