Due to the alternating loads on pumping units and the integration of new energy sources, multisource DC microgrid pumping unit well groups experience increased fluctuations in voltage and power as well as superimposed peak and valley values. This work presents a distributed control strategy for pumping unit well groups on a multisource DC microgrid based on the weighted moving average algorithm. A centralized control program is implanted in the RTU of the single-well controller of each pumping unit, and communication with each well is realized via SCADA and multicast communication, resulting in a distributed well group system. The real-time power values of the pumping well group are calculated by grouping the power values, and each group is weighted using the total power fluctuation threshold of the well group as the control target. Then, a weighted moving average algorithm is used to predict the next power value and form a table of predicted real-time power spectra. According to the power values in the community power spectrum table, the inverter frequency is proportionally adjusted downwards to reach the power peak before deceleration; after the power peak is crossed, the frequency is increased in the same way to reach the power valley before acceleration. Finally, the peak and valley power values of the bus system level off and further learn to reach the set impulse; ultimately, a stable impulse is formed. In laboratory testing and field application in the Shengli Oilfield XIN-11 block, the group control software module effectively suppressed the active power peak and valley values and voltage fluctuations of the bus system, the active power fluctuation rate range decreased by more than 70%, and the DC bus voltage fluctuation range decreased by more than 80%; moreover, the active power decreased by approximately 6% without additional hardware costs.