To prevent algae growth, position the stock tank in a shaded area away from direct sunlight, clean it regularly, and consider using an algaecide or natural additives like barley straw to inhibit algae growth.