A method for operating an implantable medical device includes determining
the difference of the absolute value of the voltage of a test QRS complex
and the voltage of a baseline QRS template at a plurality of
corresponding sample points and detecting ischemia if the sum of the
differences at the plurality of sample points is greater than an ischemia
detection threshold.