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 Expert Advisor | Area MACD

An unorthodox approach to indicator MACD: The EA calculates the indicator's area displayed above and below zero line.

Depending on parameter "Reverse signal", either BUY or SELL positions will be opened.

Inputs:

  • Stop Loss (in pips) - stop loss value
  • Take Profit (in pips) - take profit value
  • Trailing Stop (in pips) - trailing
  • Trailing Step (in pips) - trailing step
  • Lots (or "Lots">0 and "Risk"==0 or "Lots"==0 and "Risk">0) - lot size is set manually
  • Risk (or "Lots">0 and "Risk"==0 or "Lots"==0 and "Risk">0) - lot size is calculated dynamically
  • Number of bars to search for the area of the indicators - amount of bars, on which the indicator's area is calculated
  • Reverse signal

//--- MACD parameters

  • period for Fast average calculation
  • period for Slow average calculation
  • period for their difference averaging
  • type of price

Lot size calculation method impact: Whether the lot size is constant or dynamic

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 1. Constant lot size

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 2. Dynamic lot size

21124

Best MetaTrader Indicators + Profitable Expert Advisors