The stability of accretion shocks in magnetic white dwarfs is investigated. Shock oscillations are simulated numerically, and in the simulations bremsstrahlung and cyclotron cooling are considered in an explicit form. We have found that for shocks with magnetic fields lower than 10 MG, shock oscillations can be sustained; while for magnetic fields greater than 20 MG, the oscillations are suppressed.