A new digital trapezoidal shaping algorithm about nuclear pulse signal is presented. The shaping recursive model is implemented based on function convolution method. The algorithm is a common method for nuclear signal shaping, which can improve time and energy resolution of the whole system. Some simulation experiments and real data tests are carried out to verify the feasibility and superiority of the new algorithm. According to the factors configuration,filter optimization and results display can be accomplished as well.