Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 5 Indicator | DZP_Trend

The DZP Trend indicator displays the market state as a detrended oscillator, i.e. the trend component is removed from the price, thus showing a clearer picture of the price movement.

There are four input parameters:

  • Period - calculation period;
  • Shift;
  • Applied price;
  • Mode view - display mode:
    • Line
    • Histogram

Calculations:

DZP = 100*(A-B)

where:

A = (Price - Price(Shift)) / Price(Shift)  B = (MA - MA(Shift)) / MA(Shift)  Price - SMA(Applied price, 1)  Price(Shift) - SMA(Applied price, 1) Shift bars back  MA - EMA(Applied price, Period)  MA(Shift) - EMA(Applied price, Period) Shift bars back  
The indicator has the following specific feature: indicator line reversal, which forms its local extremum, often occurs a little earlier than the price moves towards this reversal. This allow placing a pending order in the desired direction in advance.

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 1. Displayed as a line

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 2. Displayed as a histogram

21643