Skip to content
All library documents

Using the Detrended Price Oscillator Sign for Directional Trades

Article Strategy library · Author: ChaoZhang

Summary

This strategy uses the Detrended Price Oscillator (DPO) to create long or short signals. It calculates the difference between price and a simple moving average over a chosen lookback, using 14 periods by default. A positive value signals a long position, while a negative value signals a short position; an optional setting reverses those directions. The document explains DPO as a way to suppress longer-term trends and make shorter price cycles easier to observe.

The approach is a simple technical rule, but it does not specify a separate stop loss or exit plan beyond switching direction when the oscillator changes sign. The document flags frequent signals, trading costs, parameter sensitivity, and the risk of holding too long during trends. It suggests adding stops, testing different lookbacks, and using trend filters. Published settings specify BTC/USDT futures on Binance with 30-minute bars and a 15-minute base period over several days in November 2023; no performance results are supplied. The DPO’s moving-average comparison is described conceptually, while the source implementation directly subtracts the moving average from price.

Key ideas

  • The strategy goes long when price is above its 14-period simple moving average and short when it is below.
  • The DPO frames price relative to a moving average to highlight shorter cycles.
  • An optional reverse setting switches the long and short directions.
  • The rules do not define a distinct stop loss, and frequent direction changes may add trading costs.
  • The published backtest settings include BTC/USDT futures but provide no performance results.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.