https://en.wikipedia.org/wiki/Kelly_criterion
?
This is the standard way of turning a probability-calibrated predictive model into a trading or betting strategy. Even the best AI model you're going to make is going to be making guesses about the direction of the financial market so you have to (1) make it smart about "knowing what it knows" and (2) build it's predictions into a systematic risk-managed trading strategy.