Usually we get residual strain from the XRD data but we are not able to measure residual stress. So how it is possible to get residual stress from the normal XRD data or Nanoindantation Data.
Actually, yes. You could measure the strain by XRD and Young's Modulus by nanoindentation. Based on these two data, you could calculate the residual stress. Another way - use the Stoney's equation.