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

Trend-following Slope Direction Line / Moving Average confirmation bars signal indicator is an equivalent of Slope Direction Line / Moving Average confirmation candles indicator. It compares direction of two moving averages: Moving Average and Slope Direction Line and displays colored signal pointers in a separate window. Their colors correspond to the match/mismatch of Slope Direction Line and Moving Average lines direction.

It has six input parameters:

  • MA period - Moving Average calculation period
  • MA method - Moving Average calculation method
  • MA applied price - Moving Average calculation price
  • SDL period - Slope Direction Line calculation period
  • SDL method - Slope Direction Line calculation method
  • SDL applied price - Slope Direction Line calculation price
  • If Moving Average and Slope Direction Line are directed upwards:
    • the green signal pointer is set
  • If Moving Average and Slope Direction Line are directed downwards:
    • the red signal pointer is set
  • In any other case, the gray signal pointer is placed.

Slope Direction Line indicator is not required - it is calculated by the indicator independently.

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 1. Slope Direction Line / Moving Average  confirmation bars

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 2. Slope Direction Line / Moving Average  confirmation bars + Slope Direction Line / Moving Average confirmation candles

22946