Area MACD – EA MetaTrader 5

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
  R-Squared_v1 - indicator MetaTrader 5

//— 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

Area MACD Lot

Fig. 1. Constant lot size

Area MACD Risk

Fig. 2. Dynamic lot size


📈 ROBOTFX MetaTrader Expert Advisors and Indicators to maximize profits and minimize the risks