My question is similar to this one but very specificly different When to stop in this coin toss game?
Imagine a game where you would start with $100. Every time you can roll a die (d6), if it is 1-5 you double the winnings, but if it is a 6 you lose everything.
How would you calculate the ideal number of rolls to make? Lets define ideal as "if preformed 1000 times, would have the highest average winning"
The question above is similar but the reward is linear. With a linear reward it seems very clear, play until the winning odds become worse than the reward. In this case though the reward always keeps up with the risk. To me it seems like at any one moment the logical thing is to keep playing as the odds are in your favor. It is obvious though that following that you are guaranteed a result of $0.
As long as you keep "average winning" as your optimization criteria, the problem has no answer, per one game or per 1000 does not matter. If your strategy $S(n)$ is "roll $n$ times and keep the winnings (or keep 0 if loose during one of those rolls)", then the strategy $S(n+1)$ has better expected value.
The problem is that as n grows, the shape of winnings distribution becomes more and more skewed and $E(\cdot)$ as optimization criteria becomes less and less psychologically acceptable.
You may want to consider some soul searching and settle on different optimization criteria.