Luanna
To answer your question, I have never heard of an ECG until I started reading on the National Instruments Forums, BUT I do a lot of signal processing for Ultrasonic Testing. And well, you have used some of the same mathematics I use, the methods only change slightly.
If you could please give me some data to look at an an explanation of exactly what you want done, not only will it aid me in figuring out the problem and possibly coming to a solution, but it will help you gather your thoughts, and understand your problem a little bit better. To find peaks I have done things such as having the computer find the threshold values and using the array max to pull both the maximum and index from the data. If you do this in a loop it will pull out all the peaks in the signal with a two dimensional array of x and y values. These can then be processed and plotted, etc.
Hope that gets you on your way
Tom