Detrend is just a simple and often needed feature. You don't want trend bias in backtest results, so Detrend removes trend either from the prices, or from the trade returns. Trend, in that context, is simply any difference between the first and last price.