Detrend_Price_Oscillator - MetaTrader 5 Script - MT4/MT5 Resource

This indicator looks similar to MA in that it filters price direction (trend) in the same way.
The detrended price oscillator is calculated as follows:
DPO(i) = closing price(i) - SMA(i, N)
Where N — MA period.
The indicator uses the class SmoothAlgorithms.mqh library (copy it to
The indicator was first implemented in MQL4 and published in the code base of mql4.com on September 1, 2008.

Figure 1. Detrended Price Oscillator
Attachment download
📎 detrended_price_oscillator.mq5 (7.19 KB)
📎 SmoothAlgorithms.mqh (130.2 KB)
Source: MQL5 #15288
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •