Just use the save mechanic to go all in with the blackjack. If it fails, just load your previous save file, then you don't have to mess with the stock prices. And save every time you win.