A self-moving device for movable furniture parts, comprising: a stationary rail of a slide assembly; a movable rail of the slide assembly longitudinally slidable with respect to the stationary rail and comprising a first connecting portion and a second connecting portion; characterized by: a closing mechanism mounted on the stationary rail, the closing mechanism comprising a guiding member having a first longitudinal slot and a transverse portion extending from one end of the first longitudinal slot; a slide base linked to slide along the first longitudinal slot and cooperating with the first connecting portion and the second connecting portion; a first elastic member connected to the slide base; a locking member connected to the slide base, the locking member and the slide base defining a locking space to accommodate the first connecting portion of the movable rail; and a stop portion cooperating with the locking member; wherein the locking member being movable against the stop portion; and an opening mechanism fixed on the stationary rail, the opening mechanism comprising a fixed portion; a push member longitudinally movable in the fixed portion, and a second elastic member connected to the push member, the push member being urged by the second elastic member to engage with the second connecting portion of the movable rail. a stationary rail of a slide assembly; a movable rail of the slide assembly longitudinally slidable with respect to the stationary rail and comprising a first connecting portion and a second connecting portion; characterized by: a closing mechanism mounted on the stationary rail, the closing mechanism comprising a guiding member having a first longitudinal slot and a transverse portion extending from one end of the first longitudinal slot; a slide base linked to slide along the first longitudinal slot and cooperating with the first connecting portion and the second connecting portion; a first elastic member connected to the slide base; a locking member connected to the slide base, the locking member and the slide base defining a locking space to accommodate the first connecting portion of the movable rail; and a stop portion cooperating with the locking member; wherein the locking member being movable against the stop portion; and an opening mechanism fixed on the stationary rail, the opening mechanism comprising a fixed portion; a push member longitudinally movable in the fixed portion, and a second elastic member connected to the push member, the push member being urged by the second elastic member to engage with the second connecting portion of the movable rail. a closing mechanism mounted on the stationary rail, the closing mechanism comprising a guiding member having a first longitudinal slot and a transverse portion extending from one end of the first longitudinal slot; a slide base linked to slide along the first longitudinal slot and cooperating with the first connecting portion and the second connecting portion; a first elastic member connected to the slide base; a locking member connected to the slide base, the locking member and the slide base defining a locking space to accommodate the first connecting portion of the movable rail; and a stop portion cooperating with the locking member; wherein the locking member being movable against the stop portion; and an opening mechanism fixed on the stationary rail, the opening mechanism comprising a fixed portion; a push member longitudinally movable in the fixed portion, and a second elastic member connected to the push member, the push member being urged by the second elastic member to engage with the second connecting portion of the movable rail.