Detrended Price Oscillator

Detrended Price Oscillator (MetaTrader indicator) — a version of the price oscillator based on the difference between the current price and the simple moving average shifted by (Period / 2) + 1 bars. Unlike stochastic oscillator, this indicator aims to show the short-term trend changes (price waves inside the long-term trend). The indicator is displayed in the separate window of a chart. You can use this Detrended Price Oscillator indicator in both MT4 and MT5 versions of the platform.

Input parameters:

  • MA_Period (default = 14) — the period of the simple moving average used in the indicator.
  • BarsToCount (default = 400) — for how many bars to calculate the indicator.
Detrended Price Oscillator Indicator Example MetaTrader Chart

Significant trend changes are signaled by the cross of the indicator and the zero level. But because the indicator is lagging, predicting such crosses can be a better tactic. I wouldn't call this indicator great for direct trading purposes but it still can be used as the short-term trend confirmation.


Detrended Price Oscillator for MetaTrader 4 in .zip

Detrended Price Oscillator for MetaTrader 4 in .mq4

Detrended Price Oscillator for MetaTrader 5 in .zip

Detrended Price Oscillator for MetaTrader 5 in .mq5


Warning! If you do not know how to install this indicator, please read the MetaTrader Indicators Tutorial.

Do you have any suggestions or questions regarding this indicator? You can always discuss Detrended Price Oscillator with the other traders and MQL programmers on the indicators forums.

© 2005–2022

Design — Mart Studio

Forex trading bears intrinsic risks of loss. You must understand that Forex trading, while potentially profitable, can make you lose your money. Never trade with the money that you cannot afford to lose! Trading with leverage can wipe your account even faster.

CFDs are leveraged products and as such loses may be more than the initial invested capital. Trading in CFDs carry a high level of risk thus may not be appropriate for all investors.