 <p>It sounds like you want to compare a short term (5-day) moving average to a longer-term moving average (e.g., something like 90 days).</p> <p>As a refinement, you might want to do a least-squares linear regression over the longer term, and then compare the shorter term average to the projection you get from that.</p>