Discussing the article: "Building Volatility Models in MQL5 (Part V): Implementing EGARCH as an Alternate Asymmetric Volatility Process"

 

Check out the new article: Building Volatility Models in MQL5 (Part V): Implementing EGARCH as an Alternate Asymmetric Volatility Process.

EGARCH models log-variance, avoiding the non-negativity constraints that can distort GARCH estimates and enabling a clear treatment of leverage asymmetry. The article provides a complete MQL5 implementation with logarithmic backcasting, simulation-based multi-step forecasting, and diagnostics including the Engle–Ng Sign Bias, Leverage Correlation, and Volatility Runs tests. Practical outputs include EGARCH Volatility, an Innovation Z-Score, and an Asymmetric Volatility Regime Oscillator to support regime analysis and strategy design.

Consider this scenario: you fit a conditional volatility model after running diagnostics (ACF and PACF) and selecting a reasonable hyperparameter set. The optimization converges, but one volatility parameter has a p-value of 0.99999 (effectively 1), indicating it is statistically insignificant. Upon inspecting the parameter itself, you find it is nearly zero, suggesting something is wrong. Should you try a different model configuration, or is the issue elsewhere? 


Standard GARCH-like models face a limitation due to the requirement that predicted conditional variance must remain positive. This necessity forces non-negative boundaries on the model's parameters, which can restrict their ability to capture complex dynamics. In 1991, economist Daniel Nelson introduced the Exponential GARCH (EGARCH) model to address this issue while also enabling the modeling of leverage effects. This article implements EGARCH in MQL5. It first illustrates the positivity-constraint limitation of standard GARCH on real data, then details EGARCH and its MQL5 implementation. It also presents tests for leverage effects and concludes with several EGARCH-based indicators.

Implementing EGARCH as an Alternate Asymmetric Volatility Process

Author: Francis Dube