I also have a question:

Is DETREND intended for observing DETREND training's effects on testing, or is it supposed to be used for code in production as well?

That is, would there ever be a reason to train data with DETREND and use that code in production?