EN
We study magnetic effects in a trilayer formed of magnetic layers separated by a spacer with a parabolic potential profile. The focus is on mechanisms of indirect magnetic interactions within the spacer. We show existence of magnetic oscillations and novel type of magnetoelectric effect.