Section 3: Production Investment Strategy

Production-level trading simulation using VECM-EGARCH hybrid model

Section 3

Overview

Section 3 covers production-level strategies that apply a hybrid model combining VECM (Vector Error Correction Model) and EGARCH (Exponential GARCH) to actual trading. This project goes beyond simple backtesting to simulate real trading environments and implements confidence-based position sizing and dynamic reoptimization strategies.


Key Concepts

VECM (Vector Error Correction Model)

VECM models the long-term equilibrium relationships and short-term dynamic adjustment processes among time series variables with cointegration relationships.

Element Description
α (Adjustment Coefficient) Speed of adjustment toward equilibrium. If α < 0, it exhibits mean-reverting characteristics
β (Cointegration Vector) Cointegration vector representing long-term equilibrium relationships
ECT (Error Correction Term) β'Y_{t-1}: Equilibrium error from the previous period

EGARCH (Exponential GARCH)

EGARCH is a volatility model that captures asymmetric volatility effects. It better models volatility increases during market downturns.

Feature Description
Leverage Effect Negative returns have a greater impact on volatility than positive returns
log(σ²_t) Log transformation automatically ensures positive variance constraint
Asymmetric Response Models asymmetric response using γᵢ parameter

Hybrid Forecasting

Combines VECM's long-term equilibrium forecasting with EGARCH's volatility adjustment to perform more accurate price prediction:

Ŷ_{t+1} = VECM_forecast + EGARCH_mean_adjustment

Trading Strategy

Entry Conditions

  • Long Entry: hybrid_yhat_buy > actual_price AND lower_price < lower_bound_mean
  • When the buy prediction price is higher than the current price and the lower bound is below the average lower bound

Exit Conditions

  • Long Exit: upper_price > upper_bound_mean
  • When the upper bound exceeds the average upper bound

Dynamic Reoptimization

  • When ECT alpha changes from negative to positive (loss of cointegration relationship)
  • Reoptimize model parameters to adapt to new market environments

Confidence-Based Position Sizing

Adjusts position size according to the prediction confidence of each trade. Higher confidence leads to larger positions, while lower confidence leads to a more conservative approach.


Actual Performance

View the actual trading history and performance metrics of this strategy:


Learning Resources

Open Source Code

View the complete implementation code on GitHub. Provides production-level actual trading simulation code.

Udemy Course

Learn the theoretical background and detailed implementation process step by step. Covers from mathematical background of VECM and EGARCH models to actual implementation.