Download MetaTrader 5

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

2010.01.26 11:12
Indicators

Detrended Price Oscillator (DPO) - indicator for MetaTrader 5

| English Русский 中文 Español Deutsch 日本語 Português

Views:
4423
Rating:
votes: 23
dpo.mq5 (2.79 KB)view

Detrended Price Oscillator removes the trend effect of price movement. This simplifies the process of finding out cycles and overbought/oversold levels.

Long-term cycles consist of several shorter cycles. Analyzing such short components helps to define crucial moments of the cycle's development. DPO gives a chance to eliminate the influence on prices of long-term cycles. To calculate DPO you should take a certain period. Remove cycles that are longer than the chosen period from price dynamics, and leave shorter cycles. Half of the cycle's length is used for smoothing. We recommend using a period of 21 or less.

The bounds (overbought/oversold levels) come from the history of previous behavior of prices. It is recommended to stand in a long position if DPO first falls below the resale level and then gets above it. Crossing of the zero point from above followed by a rise above that level is also a signal for opening a long position. Everything is vice versa for short positions.

Detrended Price Oscillator

Detrended Price Oscillator

Calculation:

DPO = CLOSE - SMA (CLOSE, (N / 2 + 1))

where:

  • SMA - simple moving average;
  • CLOSE - the closing price;
  • N - the period of the cycle (if N is equal 12, then DPO corresponds to the DiNapoli Detrend Oscillator).

Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/27

Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

Average Directional Movement Index (ADX) Average Directional Movement Index (ADX)

The Average Directional Movement Index Indicator (ADX) helps to determine if there is a price trend.

Yen Trader Yen Trader

Expert Advisor to trade Yen Crosses based on Major Pairs and USDJPY divergence/convergence.

Example of MACD Automated Example of MACD Automated

Code example of MACD automated with advanced money management function.