I'm not sure why the OP needs a flashing headlamp, but it's up to them to figure out which flashing mode works best for their needs.
I never said to shine it at every driver going down the road, but if there's a driver that looks like they're going to hit you, then I would use any means...