With LLC, do Capital Gains offset Operating Losses?

Greetings,
I'm trying to make decisions about running an LLC small business (small farm). It's tough to get going and may have losses for years due to equipment expenditures and investment in the land. I wouldn't want to get a Hobby Loss determination. If I had the ability to invest in futures/stock market profitably under the name of the LLC, would the Capital Gains and Operating Losses offset each other at all? If a business lost 50,000 in the operation side of the business but made 100,000 investing, would it be considered to be a profitable year for the business from the perspective of Hobby Loss regulations?
Thank you