There is a simple formula if we assume independence. If $A$ and $B$ are independent events, then the probability that both $A$ and $B$ occur is the product of the probabilities of $A$ and $B$.
Let $A$ be the event I am right on my first guess, and let $B$ be the event I am right on my second guess. Then the probability I am right on both guesses is $(1/2)(1/2)$, or equivalently $(1/2)^2$.
Let $A$ be the event I am right on the first two guesses, and let $B$ be the event I am right on the third guess. Then the probability that both $A$ and $B$ happen, i.e. that I am right on the first $3$ guesses, is $(1.2)^2(1.2)=(1/2)^3$.
Let $A$ be the event I am right on the first three guesses, and let $B$ be the event I am right on the fourth guess. Then the probability that both $A$ and $B$ happen, i.e. that I am right on the first $4$ guesses, is $(1.2)^3(1.2)=(1/2)^4$.
We can keep on using the same reasoning, and conclude that the probability of being right for $X$ guesses in a row is $(1/2)^X$.
More generally, if my probability of being right on any guess is $p$, and I make $X$ independent guesses in a row, my probability of being right all $X$ times is $p^X$.
Remark: Your question used the word odds and we used the term probability. These are different but closely related notions. Probability is mathematically more useful, but odds are more directly useful to gamblers.
Roughly speaking, the odds against an event is the ratio of the probability the event happens to the probability it doesn't happen.
Take for example your $X=7$. The probability we guess right $7$ times in a row is $(1/2)^7$, which is $\frac{1}{128}$. The odds that this happens are $1$ to $127$.