Jose Acosta Quantitative Developer Logo
HomeAbout MeServicesPortfolioBlog
ResumeLet's Talk
Back to Portfolio

Moving Average Crossover Backtest

Algorithmic Trading • Historical Backtesting • Crossover Strategy
7 / 20
SMA periods
Historical
Market Data
Drawdown
Risk Metric
Research Prototype · Historical Simulation

Objective

Implement a moving average crossover strategy and evaluate its behavior using historical market data.

Methodology

The strategy generates simulated trade signals when the 7-period and 20-period simple moving averages cross.

  • Historical price data and moving average calculations
  • Simulated trades based on crossover signals
  • Modular Python backtesting implementation
  • Historical market data loaded from Yahoo Finance
  • Separate modules for data, strategy, evaluation and visualization

Results

The public implementation reports historical return, volatility, Sharpe ratio and maximum drawdown. Live execution and profitability are not demonstrated.

Explicit and repeatable crossover rules

Historical simulation with performance charts

Risk-return metrics for evaluating the simulated strategy

Challenges

Research considerations and next steps:

  • Evaluating realistic transaction costs
  • Separating research and test data
  • Handling missing or inconsistent historical observations
  • Checking sensitivity to moving-average periods
  • Comparing against a simple benchmark

Technologies Used

PythonPandasyfinanceMatplotlib
View on GitHubBack to Portfolio

Your Quant Development Partner

Quantitative Developer building robust algorithmic trading systems — from research to execution. Backtesting infrastructure, live trading systems, and risk management backed by real-market experience.

Useful Links

  • Portfolio
  • About Me
  • LinkedIn
  • GitHub
  • Contact

Additional Pages

  • Trading Services
  • Privacy Policy
  • Terms of Service

Contact

© 2026 Jose Acosta. All rights reserved.
Design & Development by
Jose Acosta