A nonlinear two-dimensional steady state solution in the framework of hydrodynamics describing a row of periodic counter-rotating vortices is extended to the magnetohydrodynamic (MHD) equilibrium equation with incompressible flow of arbitrary direction. The extended solution covers a variety of equilibria because four surface quantities remain free. Similar to the case of the MHD cat-eyes equilibrium [Throumoulopoulos et al., J. Phys. A: Math. Theor. 42, 335501 (2009)] and unlike linear equilibria, the flow has a strong impact on isobaric surfaces by forming pressure islands located within the counter-rotating vortices even for values of β (defined as the ratio of the thermal pressure over the external axial magnetic-field pressure) on the order of 0.01. Also, the axial current density is appreciably modified by the flow. Furthermore, a magnetic-field-aligned flow of experimental fusion relevance, i.e for Alfvén Mach numbers of the order of 0.01, and the flow shear in combination with the variation of the magnetic field perpendicular to the magnetic surfaces have significant stabilizing effects potentially related to the equilibrium nonlinearity. The stable region is enhanced by an external axial magnetic field.