There is currently great interest in the design of nanodevices that are capable of performing movements. Protein molecular machines are abundant in biology but it has recently been proposed that nucleic acids could also act as nanomolecular machines in model systems. Several types of movements have been described with DNA machines: rotation, extension-contraction and "scissor-like" opening and closing. Here we analyze the properties of a simple and robust device composed of a single 21-base-long oligonucleotide which relies on a duplex/quadruplex equilibrium fueled by the sequential addition of DNA single-strands, generating a DNA duplex as a by-product. The interconversion between two well-defined topological states induces a five nanometer two-stroke, linear motor type movement, which is detected by FRET spectroscopy.