Skip to content
bernardiavaPublic

About

Data Analytics Project ECON 7055

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

High-Frequency Trading (HFT) Analysis Project - ECON 7055

This repository contains a comprehensive high-frequency trading analysis project focusing on Tesla (TSLA) stock data, including risk modeling, time series forecasting, and machine learning approaches.

Project Overview

This project analyzes intraday trading patterns, Value at Risk (VaR) calculations, and implements hybrid AR-GARCH-LSTM models for high-frequency trading strategies using 1-minute interval data.

Repository Contents

Jupyter Notebooks

  • HFT Project ECON 7055 Submit.ipynb - Main project notebook containing:

    • Data fetching from Alpha Vantage API
    • Closing price distribution analysis
    • ARIMA modeling
    • Various financial visualizations
    • Machine Learning Hybrid Model (AR-GARCH LSTM)
  • TSLA_AR_GARCH_LSTM_HYBRID_HFT.ipynb - Specialized notebook implementing:

    • AR-GARCH-LSTM hybrid model for TSLA
    • High-frequency trading predictions
    • Model evaluation and backtesting

Data Files

  • TSLA_1min_data_24.csv - Tesla 1-minute interval trading data (~7.6 MB)

Documentation

  • Differences in Intraday VaR and Implications for Trading Strategies.pdf - Research paper on intraday Value at Risk analysis
  • Mastering Market Risk TSLA New Revised.pdf - Comprehensive market risk analysis document for Tesla

License

  • LICENSE - GNU General Public License v3.0

Key Features

  • Data Acquisition: Automated fetching of 1-minute intraday data from Alpha Vantage API
  • Risk Analysis: Intraday Value at Risk (VaR) calculations and comparisons
  • Time Series Modeling: ARIMA and GARCH models for volatility forecasting
  • Machine Learning: LSTM neural networks combined with traditional econometric models
  • Visualization: Comprehensive plots for price distributions, VaR profiles, and model performance

Requirements

To run the notebooks, you'll need:

  • Python 3.x
  • pandas
  • numpy
  • matplotlib
  • scikit-learn
  • TensorFlow/Keras (for LSTM models)
  • statsmodels (for ARIMA/GARCH)
  • requests

Usage

  1. Clone or download this repository
  2. Install required dependencies
  3. Open the Jupyter notebooks in Jupyter Lab or Jupyter Notebook
  4. Run cells sequentially to reproduce the analysis

Methodology

The project employs:

  • Classical econometric models (AR, GARCH)
  • Deep learning approaches (LSTM)
  • Hybrid modeling combining both approaches
  • Comparative analysis of different VaR calculation methods
  • Cost-benefit analysis of risk management strategies

Findings

Key insights from the analysis include:

  • Intraday VaR variations across different trading hours
  • Performance comparison between classical and ML-based risk models
  • Potential cost savings from improved risk estimation
  • Volatility drivers in TSLA high-frequency trading

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.

Academic Context

This project was developed for ECON 7055 as a comprehensive analysis of high-frequency trading strategies and risk management techniques.

About

Data Analytics Project ECON 7055

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages