Navigation: Realtest Script Language > Syntax Element Details > MACD Category Indicator Functions Description Moving Average Convergence Divergence Syntax MACD(len1, len2) Parameters len1 - faster moving average period (typically 13) len2 - slower moving average period (typically 26) Notes MACD is the difference between two moving averages. It is calculated as EMA(C,len1) - EMA(C,len2). This indicator supports one-pass calculation when used in the Data Section with non-variable lengths. Copyright © 2020-2025 Systematic Solutions, LLC