Enumerate MA periods for optimisation