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 Libraries | SignalMAAboveBelow 2

This library is a further development of SignalMAAboveBelow.

What's new in version 2

  • The Type of trade parameter allows to set the type of signal to be produced by the module:
    • only BUY
    • only SELL
    • BUY and SELL

Example of opening positions when Reverse == false:

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 1. SignalMAAboveBelow 2 - opening a BUY position

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 2. SignalMAAboveBelow 2 - opening a SELL position

Parameters of the signals module

  • Reverse - the flag of the reverse of signals;
  • PeriodMA - the averaging period of the Moving Average indicator;
  • Shift - the horizontal shift of the Moving Average indicator;
  • Method - type of smoothing of the Moving Average indicator;
  • Applied - the type of the price, based on which the Moving Average indicator is calculated;
  • TypeOfTrade - type of trading signals: 0 → BUY, 1 → SELL, 2 → BUY and SELL.
20051

Best MetaTrader Indicators + Profitable Expert Advisors