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 (101, 102) crossed by a longitudinal axis of the housing; • an angled rod, which is movable in translation with respect to the housing along the longitudinal axis and which comprises: ◆ a sensing part, which is parallel to the longitudinal axis 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 (57, 98, 99), 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 (30, 30'); • the intermediate part, said at least one battery (30, 30') and the electronic means are disposed inside the housing; and • said at least one battery (30, 30') is disposed, along the longitudinal axis, 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 (101, 102) crossed by a longitudinal axis of the housing; • an angled rod, which is movable in translation with respect to the housing along the longitudinal axis and which comprises: ◆ a sensing part, which is parallel to the longitudinal axis 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 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 (57, 98, 99), 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 (57, 98, 99), 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 (30, 30'); • the intermediate part, said at least one battery (30, 30') and the electronic means are disposed inside the housing; and • said at least one battery (30, 30') is disposed, along the longitudinal axis, between the electronic means and the intermediate part of the angled rod.