In practical terms, you’re not. Contribute to a traditional IRA. Roll it over immediately into a Roth IRA. You can do this regardless of how large your income is.
The point of waiting e.g. 30 days is EXACTLY that it exposes you to gains/losses and you can rightly say the two actions are no longer connected.