Skip to content

rossautomatedsolutions/Machine-Learning-for-Options-Trading

Repository files navigation

Machine-Learning-for-Options-Trading

Machine Learning for Options Trading

Overview

This project applies machine learning and statistical analysis to options trading. The goal is to analyze whether options contracts reach predefined profit targets and to identify optimal trading setups. We utilize historical options data, perform hypothesis testing, and apply clustering techniques to structure a data-driven approach to options trading.

This repository contains four Jupyter notebooks covering different aspects of the analysis:

Notebooks

  1. Notebook 1: Data Aggregation

    • Collects and structures intraday options data.
    • Merges underlying asset prices with option prices.
    • Labels options based on moneyness (ITM, ATM, OTM).
  2. Notebook 2: Hypothesis Testing

    • Tests whether options reach predefined profit targets (5%, 10%, 15%).
    • Uses statistical significance tests (T-tests, confidence intervals).
  3. Notebook 3: Simple Statistics

    • Applies logistic regression and clustering to identify profitable trade setups.
    • Uses Cohen’s D for effect size measurement.
    • Implements survival analysis to determine trade longevity.
  4. Notebook 4: Summary & Trade Optimization

    • Summarizes trade performance by ranking trades based on profitability.
    • Generates a trade schedule with optimal setups.

Getting Started

  • Clone the repository and install necessary dependencies using:
  • Run each notebook sequentially to process the data, analyze profitability, and derive trade setups.

Future Work

  • Expanding the dataset to include more historical trades.
  • Exploring additional trade setups based on different market conditions.
  • Applying deep learning models for improved predictive accuracy.

Blog Series

This project is part of a blog series that explores the methodology in depth:

About

Machine Learning for Options Trading

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published