Some tips:
Auto buy for materials when under a certain threshold.
Auto Sell for bullets when prices go over a certain amount(or sell whenever possible)
These could be upgrades needing to be bought, then researched in making it faster and more efficient (Selling more bullets pr second, buying materials in bulk and cheaper)