1: \begin{abstract}
2: We investigate the asymptotic of ruin probabilities when the company invests its reserve in a risky asset with a switching regime price. We assume that the asset price is a conditional geometric Brownian motion with parameters modulated by a Markov process with a finite number of states.
3: Using the technique of the implicit renewal theory
4: we obtain the rate of convergence to zero of the ruin probabilities as the initial capital tends to infinity.
5: %Our main result gives an asymptotic of the ruin probabilities when the initial capital tends to infinity.
6: %The result allows us
7: %to quantify the share of reserve to invest into such a risky asset to avoid a catastrophic outcome: the ruin with
8: %probability one. We address also the question of smoothness of the ruin probabilities as a function of the initial reserve for generally distributed jumps.
9: \end{abstract}
10: