The work is devoted to the development of the theory of coherent X-ray radiation near the direction of Bragg scattering of a beam of relativistic electrons crossing a target with a periodic layered structure with three different amorphous layers per period. The coherent X-ray radiation is considered within the two-wave approximation of the dynamic theory of diffraction as a sum of parametric X-ray radiation and diffracted transition radiation excited in the target by a relativistic electron. Expressions describing the spectral-angular and angular densities of PXR and DTR have been obtained and studied.