The magnetic profile of a collisionless shock is shaped by ions. Dynamics of the ions is governed by the fields in the shock front. Species with different charge‐to‐mass ratio have different gyroradii; thus, their distributions upon crossing the shock became substantially different. Accordingly, the dependencies of the density and temperature on the coordinate along the shock normal should differ. In a stable one‐dimensional stationary shock the total pressure must remain constant throughout. Therefore, the magnetic pressure should anticorrelate with the particle pressure. Since the particle pressure is not uniform, downstream spatial magnetic oscillations should arise. Each of the species results in its own dependence of the pressure on the coordinate along the shock normal; therefore, the oscillations are not spatially periodic. The magnetic compression in the shocks with alpha particles is higher than the magnetic compression in purely proton shocks, while the amplitude of the downstream magnetic oscillations is lower.