How to Quickly Construct and Backtest a Simple Moving Average Crossover Strategy with Python

Photo by m. on Unsplash

Getting Started

  • Historical EOD data
  • A Long Moving Average
  • A Short Moving Average

What are Moving Averages?

How to Use a Moving Average to Generate a Trade Signal?

  • Price Crossover
  • Moving Average Crossover

Price Crossover

Moving Average Crossover

What are the Drawbacks of a Moving Average Crossover Strategy?

How to develop a Moving Average Crossover Strategy with Python?

SMA Crossover Strategy Results

Where to access clean market data

Full Code Walkthrough

--

--

--

High-quality financial data. Tools built for developers. First-class, US-based support. Data doesn’t have to be hard or expensive.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How To Live Debt-Free

Dollar-Cost Averaging: The #1 Investing Strategy

Can We Make Consistent Profits By Trading the Market?

Can you get a mortgage if you buy property at an auction?

How would filing for corporate bankruptcy effect my personnel credit?

A Beginner’s Guide to the Stock Market: Everything You Need to Start Making Money Today by Matthew…

I Made £1,500 Renting my Studio on Airbnb

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Intrinio

Intrinio

High-quality financial data. Tools built for developers. First-class, US-based support. Data doesn’t have to be hard or expensive.

More from Medium

Backtest Around Stock Earnings Using Historic Stock Earnings Data

Buy And Hold Vs SMA Crossover: Big Profits With Simple Strategy

Using High Yield Bond As Early Warning for The Stock Market

Using High Yield Bond As Earning Warning for The Stock Market

Market Data 101 [Part 1]