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


Detrended_Price_Oscillator - indicator for MetaTrader 5

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

votes: 12
2016.06.30 12:37
2016.11.22 07:32

Real author:


The indicator looks similar to MA since it filters the price direction (trend) in the same way.

Detrended Price Oscillator is calculated according to the formula:

DPO(i) = Close(i) - SMA(i, N)

where N — MA period.

The indicator uses the classes of SmoothAlgorithms.mqh library (copy it to <terminal_data_folder>\MQL5\Include). The use of the classes was thoroughly described in the article "Averaging Price Series for Intermediate Calculations Without Using Additional Buffers".

This indicator was first implemented in MQL4 and published in Code Base at on 01.09.2008.

Fig.1. Detrended_Price_Oscillator

Fig.1. Detrended_Price_Oscillator

Translated from Russian by MetaQuotes Software Corp.
Original code:

Taf Taf

The channel applying the algorithm similar to the simplest zigzag.

Elliott_Wave_Oscillator_HTF_Signal Elliott_Wave_Oscillator_HTF_Signal

Elliott_Wave_Oscillator_HTF_Signal shows a trend direction or a signal for performing a deal generated by Elliott_Wave_Oscillator_Sign indicator at the chosen bar as a graphic object with colored trend indication or deal direction and sends alerts or audio signals in case of a market entry moment.

XDPO_Histogram XDPO_Histogram

The simplest oscillator based on the difference between the price and its Moving Average. The oscillator is smoothed and displayed as a color histogram.

Exp_XDPO_Histogram Exp_XDPO_Histogram

Trading system based on XDPO_Histogram indicator signals.