The invention relates to a method for generating energy from an undulating movement of a medium such as seawater, comprising of following the movement of the medium, wherein a direction of movement of the movement changes at a point in time, converting the followed movement into energy, interrupting the following of the movement for an interruption period close to the point in time, wherein conversion of energy comprises of pumping a fluid with the followed movement by feeding and discharging said fluid.