A novel lattice hydrodynamic model is raised by integrating the cooperative deviation of density and optimal flux under V2X environment. According to theoretical analysis, the stability conditions and the mKdV equations affected by the cooperative deviation of traffic information are explored. And the density wave, hysteresis loop and energy consumption of traffic flow have been investigated via numerical simulation. The results indicate that the cooperative deviation of density and optimal flux can effectively alleviate traffic congestion. More importantly, our new consideration can reduce fuel consumption and exhaust emissions under V2X environment.