Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Algorithmic Trading: Build a Momentum Strategy in Python
Rating: 4.8 out of 5(51 ratings)
633 students

Algorithmic Trading: Build a Momentum Strategy in Python

Go from raw data to a fully analyzed, professional-grade trading strategy in Python.
Last updated 12/2025
English
English [Auto],

What you'll learn

  • Receive a complete, working momentum strategy and a professional library of reusable Python functions for performance analysis (worth the course price alone).
  • Build a complete, end-to-end algorithmic trading strategy in Python that you can run and test yourself.
  • Analyze your strategy’s true performance and risk using the same critical metrics (Sharpe, Sortino, Drawdowns) that professional quants rely on.
  • Write a professional-grade backtesting engine from scratch to realistically simulate portfolio performance, avoiding common "rookie" mistakes.
  • Go beyond theory: Statistically prove why a momentum strategy works with real-world data (and learn how to test your own future ideas).

Course content

5 sections31 lectures8h 0m total length
  • Course Overview16:01

    Learn to design, backtest, and implement a momentum investment strategy in Python using US-listed ETFs. Build research, strategy, and backtest notebooks, with monthly signals, trade logs, and performance tear sheets.

  • Google Colab Primer13:59

    Explore Google Colab for Python data work, using Jupyter-style notebooks, pandas, and CSV imports. Learn to install packages with pip, manage runtimes, export notebooks to ipynb or pdf.

  • Financial Modeling Prep Primer and Storing API Keys9:08

    Learn how to create a Financial Modeling Prep account, obtain and securely store your API key in Google Colab secrets, and retrieve historical pricing data with a reusable function.

  • Read This Before Continuing!1:23
  • Introduction to Momentum20:26

    Introduce momentum as buying winners and selling losers, define lookback and holding periods, and outline a long-only momentum strategy with historical context and risks.

  • Disclaimers1:14

Requirements

  • You should have a basic-to-intermediate understanding of Python and the pandas library. (You know what a DataFrame is and how to use it).
  • A foundational knowledge of financial markets is required. (You know what stocks, ETFs, and market returns are).

Description

Stop guessing and start building. This course is a complete, hands-on guide for finance professionals, data analysts, and Python developers who want to professionally build and test an algorithmic trading strategy. We're not just talking theory; you will build a complete, data-driven momentum strategy—one of the most robust and academically-proven factors in finance—from the ground up.

First, you'll learn how to validate a trading idea using data. You'll test thousands of parameters to statistically prove the strategy has merit, visualizing your results in a professional heatmap before you write a single line of backtest code.

Next, you'll build the strategy, step-by-step: gathering ETF data from a broad, liquid universe, cleaning it, and generating the core trading signals by ranking and selecting the top performers.

Finally, you will code a complete, realistic backtest that mimics how a real fund would trade, accounting for monthly rebalancing. You'll go far beyond simple returns by building a professional performance "tear sheet" to analyze risk, drawdowns, Sharpe/Sortino ratios, and market capture.

You'll walk away with a powerful, working momentum strategy and a reusable library of professional analysis functions that you can use to test any strategy idea. This is the practical, end-to-end blueprint for building with confidence and skill.

Who this course is for:

  • Aspiring algorithmic traders who want to learn how to build a complete, professional-grade backtest from scratch.
  • Python Developers curious about applying their coding skills to the financial markets.
  • Finance professionals, analysts, or students who want to move beyond Excel to build and test trading strategies in Python.
  • Traders and investors who want to stop guessing and start scientifically testing their own strategy ideas with real data.