A new method to search for a cosmic ray dipole anisotropy