RobotFX curates the best open-source MetaTrader code to inspire your trading automation.
Detrended Price Oscillator is calculated according to the following formula:
DPO(i) = Close(i) - SMA(i, N)
where N is the moving average period.
Trade the powerful Traders Dynamic Index strategy automatically with this dedicated TDI Expert Advisor. More details.

Thanks for reading. Discover premium MetaTrader solutions at RobotFX.
8387