This paper presents a new method for real-time QRS complex detection in ECG signals using wavelet transform and a Savitzky-Golay filter for denoising. The proposed algorithm achieved high sensitivity of 99.97% and positive predictivity of 99.99% over 109,092 heartbeats tested from the MIT-BIH Arrhythmia Database. The method effectively addresses challenges in detecting ECG signals affected by noise and various arrhythmias, enhancing reliability in cardiac diagnostics.