With the growing popularity of multicast applications and the gaining recognition of traffic grooming, the optimizing design with multicast traffic grooming in WDM networks becomes more and more important. Different grooming strategies require different resources, such as grooming ports, optical transceivers. In order to use the least of the current resources in the network for a multicast, a new dynamic multicast traffic grooming algorithm(DP_GA) is proposed. Firstly, a new traffic grooming discriminant is designed in DP_GA algorithm, which judged whether it is suitable for traffic grooming according to the network resource status in real time. Secondly, a formula named total routing cost is designed to select one grooming strategy from multi-hop, hybrid and extended optical tree. Compared with ADMGA algorithm, DP_GA algorithm can fully use of limited network resources and reduce request blocking rate.