The invention relates to a two-way anti-slip stabilizer for preventing railway wheels from rolling, comprising a first stabilizer, a second stabilizer and a locking assembly used in cooperation with each other; the first stabilizer and the second stabilizer both include a wheel Clamping plate, housing, roller assembly and multiple clamping fins for clamping the rail, the locking assembly includes a locking rod and two locking heads, one end of the locking rod is hinged to the front end of the first stabilizer through a rotating shaft The other end of the locking rod is provided with a locking piece that can cooperate with the locking head, one of the locking heads is arranged on the tail end side wall of the first stabilizer, and the locking head and the locking rod are arranged On the same side of the wheel pressure plate, another locking head is arranged on the middle side wall of the second stabilizer. The stabilizer of the present invention can be locked with the rail after being installed on the rail, can prevent theft, can prevent the wheel of the locomotive from overturning, and can realize the stability and anti-rolling of the wheel of the railroad.