Official MetaQuotes example Expert Advisor for MetaTrader 5. It demonstrates an automated strategy using the MACD indicator, with inputs for lot size, take profit, trailing stop, and MACD levels.
Source: MQL5 Code Base. Test on a demo account before any live use.