Catalyzes a disproportionation reaction in which single or multiple glucose units from oligosaccharides are transferred to the 4-hydroxyl group of acceptor sugars. Glucose, maltose and maltotriose can act as acceptor, whereas of the three only maltotriose can act as donor. Transfers a segment of a (1->4)-alpha-D-glucan to a new position in an acceptor, which may be glucose or a (1->4)-alpha-D-glucan. Belongs to the disproportionating enzyme family.