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

The Mirror MA indicator features two mirrored moving averages in a separate chart window calculated based on a difference between two MAs with different calculation data, and one signal line calculated based on a direct moving average data.

It has eight input parameters:

  • First MA period - direct MA calculation period;
  • First MA method - direct MA calculation method;
  • First MA applied price - direct MA calculation price;
  • Second MA period - reverse MA calculation period;
  • Second MA method - reverse MA calculation method;
  • Second MA applied price - reverse MA calculation price;
  • Signal period - signal line calculation period;
  • Signal method - signal line calculation method.

Calculations:

Direct = MA1-MA2,  Reverse = MA2-MA1  Signal = MA(Direct, Signal period, Signal method)  

where:

MA1 = MA(First MA applied price, First MA period, First MA method)  MA2 = MA(Second MA applied price, Second MA period, Second MA method)  
If calculation data of these two MAs coincide (which lead to a zero difference between the two MAs), a warning with the error message will be displayed and the indicator will exit until the user changes the parameters.

MetaTrader Experts, Indicators, Scripts and Libraries

21731