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 | Dynamic_Trend

The Dynamic Trend signal indicator draws a two-color trend direction line and adds signal arrows.

It has two input parameters:

  • Period - calculation period;
  • Percent - "strengthening percent" (*).

Calculations:

Line

  • If Close < PrevLine:

    Line = Close[Hindex] - Percent
  • If Close > PrevLine:

    Line = Close[Lindex] + Percent

where:

  • Hindex - the index of the highest Close within the Period interval;
  • Lindex - the index of the lowest Close within the Period interval.

Arrows

  • If Close[3] > Line[2] and Close[2] < Line[3]: Blue up arrow.
  • If Close[2] < Line[1] and Close[2] > Line[3]: Red down arrow.
* The strengthening percent is actually the number of points, by which the line is "attached" to the price.
To filter the indicator signals, it is recommended to use confirmation signals, such as support/resistance levels.

MetaTrader Experts, Indicators, Scripts and Libraries

21725