If I'm not mistaken, the orbits would have to be exactly the same size, around bodies the same size (unless the orbit is perfectly circular, which I imagine defeats the purpose) and travel in the opposite direction from each other, the apoapsis would have to line up exactly or it would drift.