Legendary investor Warren Buffett advises to be fearful when others are greedy, and be greedy when others are fearful. One way we can try to measure the level of fear in a given stock is through a technical analysis indicator called the Relative Strength Index, or RSI, which measures momentum on a scale of zero to 100. A stock is considered to be oversold if the RSI reading falls below 30.In trading on Thursday, shares of XenoPort Inc ( XNPT) entered into oversold territory, hitting an RSI reading of 29.8, after changing hands as low as $5.05 per share. By comparison, the current RSI reading of the S&P 500 ETF (SPY) is 49.4. A bullish investor could look at XNPT's 29.8 RSI reading today as a sign that the recent heavy selling is in the process of exhausting itself, and begin to look for entry point opportunities on the buy side. The chart below shows the one year performance of XNPT shares: Looking at the chart above, XNPT's low point in its 52 week range is $5.00 per share, with $12.98 as the 52 week high point — that compares with a last trade of $5.09.