Edward, NFPA 72 11.8.3.3 Sloped Ceilings Smoke alarms or smoke detectors mounted on a sloped ceiling having a rise greater than 1m in 8m (1ft in 8in) horizontally shall be located within 914mm (36 in) of the high side of the ceiling, but not closer than 102mm (4 in) of the adjoining wall surface.

Roger