This paper introduces a novel digital triangular-trapezoidal double-channel shaping algorithm to enhance the counting rate of resistive anode detectors. The algorithm is based on the trapezoidal shaping algorithm and improves it. At the extreme counting rate, the trapezoidal shaping algorithm cannot alleviate the pulse pileup, so the counting rate cannot meet the requirements of a high performance detector. The triangular-trapezoidal double-channel shaping algorithm is introduced in the resistance anode detector, which can replace the trapezoidal shaping filtering algorithm to process the output signal of the resistance anode detector and obtain the single photon position information. This improvement improves the counting rate of the resistor anode detector and reduces the resolution degradation caused by pulse pileup. The algorithm is simulated by System Generator software and implemented on FPGA (field programmable gate array). The triangular-trapezoidal double-channel shaping algorithm presented in this paper plays an important role in reducing electronic noise and pulse pileup. The algorithm is subjected to simulation testing, and it can recognize signals with a minimum pulse interval of 1 µs and counting rate up to 1000 kcps.