Use the Kelly Criterion (as suggested by @olaker). For the amount of money to put into each transaction, use Implied Volatility to calculate the amount you are risking to within a VAR (Value At Risk) of 99% (i.e. +/- 3 standard deviations of the underlying).
See How to calculate future distribution of price using volatility?
Caveats:
- Markets price distributions have fat tails. When markets crash, they really crash.
- Take into account skew on Implied Volatility (IV). For stocks, the IV skew is negative, so there is a greater chance of a rapid drop in the price. For commodities, the IV skew could be positive, there is a greater chance of a rapid increase in the price.
- The Kelly Criterion means the greatest long term increase in the value in your portfolio, at the expense of huge drawdowns and large swings in the value of your portfolio. In practice, you'll have to dial down the risk until the expected drawdown is acceptable. You might have to do some Monte Carlo simulations to work out the actual risk level at any point in time.
Then again, you could always use OpenGamma to handle your risk management for you.
Update:
See How to estimate the probability of drawdown / ruin?