Detrend must be set before the price history is loaded. It can not be shuffled afterwards. You could create a copy of the asset, shuffle only the copy, and switch to the copy at the second cycle.