How to shift strike based on ratio between call & put

I want shift profitable leg when call & put price difference become 1:2.
plz help :pray: