A position detector for a movable fitting , the movable fitting being carried by an edge (5; 6) belonging to a sash or to a frame of a framework such as a door, window or shutter, the detector comprising: • a housing , which is configured to be fixed to the edge (5; 6) and which comprises two longitudinal ends crossed by a longitudinal axis (X20) of the housing ; • an angled rod , which is movable in translation with respect to the housing along the longitudinal axis (X20) and which comprises: ◆ a sensing part , which is parallel to the longitudinal axis (X20) and extends at least partially outside the housing , the angled rod being configured to be actuated in translation by the movable fitting via the sensing part ; ◆ a rear part , which extends into the interior of the housing , the rear part being transversely offset from the sensing part ; ◆ an intermediate part , which connects the sensing part to the rear part and extends transversely to the sensing part ; and • electronic means , which comprise: ◆ a position sensor system , generating position information as a function of the translational position of the angled rod , and ◆ a transmitter of the position information; characterised in that : • the detector further comprises at least one battery ; • the intermediate part , said at least one battery and the electronic means are disposed inside the housing ; and • said at least one battery is disposed, along the longitudinal axis (X20), between the electronic means and the intermediate part of the angled rod . • a housing , which is configured to be fixed to the edge (5; 6) and which comprises two longitudinal ends crossed by a longitudinal axis (X20) of the housing ; • an angled rod , which is movable in translation with respect to the housing along the longitudinal axis (X20) and which comprises: ◆ a sensing part , which is parallel to the longitudinal axis (X20) and extends at least partially outside the housing , the angled rod being configured to be actuated in translation by the movable fitting via the sensing part ; ◆ a rear part , which extends into the interior of the housing , the rear part being transversely offset from the sensing part ; ◆ an intermediate part , which connects the sensing part to the rear part and extends transversely to the sensing part ; and ◆ a sensing part , which is parallel to the longitudinal axis (X20) and extends at least partially outside the housing , the angled rod being configured to be actuated in translation by the movable fitting via the sensing part ; ◆ a rear part , which extends into the interior of the housing , the rear part being transversely offset from the sensing part ; ◆ an intermediate part , which connects the sensing part to the rear part and extends transversely to the sensing part ; and • electronic means , which comprise: ◆ a position sensor system , generating position information as a function of the translational position of the angled rod , and ◆ a transmitter of the position information; ◆ a position sensor system , generating position information as a function of the translational position of the angled rod , and ◆ a transmitter of the position information; • the detector further comprises at least one battery ; • the intermediate part , said at least one battery and the electronic means are disposed inside the housing ; and • said at least one battery is disposed, along the longitudinal axis (X20), between the electronic means and the intermediate part of the angled rod . <EOS>