Hi there my friends, another request here for MT4
Here is the formula:
Detrended Price Oscillator is calculated according to the following formula:
DPO(i) = Close(i) - SMA(i, N)
where N is the moving average period.
Only tweak needed is replacing the SMA by a VWMA (volume weighted moving average)
Cheers!