Here is an example of Requirements Specification for the development of the MACD Sample Expert Advisor, which is available in the MetaTrader 5 standard package.
1. The idea of the trading system is as follows: market entries are performed when MACD's main
and signal lines intersect in the current trend direction
2. Trend is determined based on the Exponential
Moving Average with the specified period (InpMATrendPeriod). If the current EMA value is greater than the previous one, the trend is seen as
growing (ema_current > ema_previous). Alternatively, if current EMA is below the previous one, the trend is considered to be falling
3. Trading Signals: