I’ve owned koi (Japanese carp) in ponds and large aquariums for many years, and when they become sick or die, it almost always has something to do with the water quality.
Is it a new pond? If so, the nitrogen cycle probably hasn’t run its course yet, and you have to be careful about how much fish you add to the pond, how much you’re feeding them, and keeping a close eye on the ammonia levels. In a new pond, the ammonia level will reach high levels by the 2nd or 3rd week, then drop. After that, the level of nitrites (another toxic chemical produced by fish waste and decomposition) will rise to dangerous levels. This is the second phase, and the one that lasts the longest, about 3 weeks. After that, both ammonia and nitrite levels will drop to almost undetectable levels, almost like magic. That means your nitrogen cycle is complete, and the amount of “good bacteria” in the water is at an optimum level to get rid of the ammonia and nitrites. Get ammonia and nitrite testing kits to test your pond water.
Even in established ponds, you can still have ammonia problems if you’re overstocking the pond with too many fish, or if your filter is too dirty and feeding the fish too much. Water changes are a must.
The other possible thing that may be killing your goldfish is a disease, especially if the water temperature fluctuates so much. Common fish diseases are ich (white spot disease), velvet, and bacterial diseases and parasites.
Another cause may be a lack of oxygen in the water, but if your pond is well-aerated, you shouldn’t have to worry.
Ph is important too. Goldfish and koi like slightly “alkaline water” with a Ph around 7.3. Again, test the Ph of the water. If the Ph is well below 7, around 5 or lower, the water is very acidic, and your goldfish will be stressed and may even die.
If your goldfish look “normal” when you take it out of the water, and look bright-eyed with normal coloration, healthy finnage and gills, and are not emaciated or bloated, or have any discoloration or signs of disease, it’s usually a “water quality issue”, especially ammonia poisoning or some other kind of poisoning.
One tip——try adding aquarium salt to your pond water. It’s a good tonic for fish, especially goldfish and koi. Not too much, but about 1 tablespoon per 5 gallons of water is a good amount. It makes ammonia and nitrites less toxic, and it also prevents most diseases and parasites from getting a foot-hold. When you do a water change, remember to replenish the salt once in awhile.