====== MACD ====== FIXME ===== Parameters ===== **Logical rules for Opening Logic Condition slot.** * MACD line rises; * MACD line falls; * MACD line is higher than zero; * MACD line is lower than zero; * MACD line crosses the zero line upward; * MACD line crosses the zero line downward; * MACD line changes its direction upward; * MACD line changes its direction downward; * MACD line crosses the Signal line upward; * MACD line crosses the Signal line downward; * MACD line is higher than the Signal line; * MACD line is lower than the Signal line; **Logical rules for Closing Logic Condition slot.** * MACD line rises; * MACD line falls; * MACD line is higher than zero; * MACD line is lower than zero; * MACD line crosses the zero line upward; * MACD line crosses the zero line downward; * MACD line changes its direction upward; * MACD line changes its direction downward; * MACD line crosses the Signal line upward; * MACD line crosses the Signal line downward; * MACD line is higher than the Signal line; * MACD line is lower than the Signal line; **List box parameters** * **Smoothing method** (Exponential). The smoothing method of Moving Averages. Options: Simple, Weighted, Exponential, Smoothed. * **Base price** (Close). The price the Moving Averages are based on. Options: Open, High, Low, Close, Median, Typical, Weighted. * **Signal line method** (Simple). The smoothing method of the signal line. Options: Simple, Weighted, Exponential, Smoothed. **Numeric box parameters** * **Slow MA period** (26). The period of Slow MA. Minimum: 1, Maximum: 200. * **Fast MA period** (12). The period of Fast MA. Minimum: 1, Maximum: 200. * **Signal line period** (9). The period of Signal line. Minimum: 1, Maximum: 200. ===== Implementation ===== C# source code: [[https://github.com/PopovMP/FSB_Pro_Indicators/blob/master/Indicators/Store/MACD.cs|MACD]]. MQL source code: [[https://github.com/PopovMP/FSB_Expert_Advisor_Code/blob/master/Forexsb.com/Indicators/MACD.mqh|MACD]].