Skip to content
Change the repository type filter

All

    Repositories list

    • QuickStart notebooks for QuantRocket
      Jupyter Notebook
      Apache License 2.0
      1200Updated Sep 16, 2024Sep 16, 2024
    • Overview of 3 sentiment datasets from data provider Brain: Brain Sentiment Indicator (news sentiment), Brain Language Metrics on Company Filings, and Brain Language Metrics on Earnings Call Transcripts.
      Jupyter Notebook
      Apache License 2.0
      0000Updated Jun 24, 2024Jun 24, 2024
    • Introduction to QuantRocket's borrow fees dataset. Uses Alphalens to analyze borrow fees as an alpha source and uses Moonshot to backtest a strategy that shorts stocks with high borrow fees while modeling borrowing costs.
      Jupyter Notebook
      Apache License 2.0
      0100Updated May 13, 2024May 13, 2024
    • Introductory tutorial for MoonshotML demonstrating walk-forward optimization of a simple machine learning strategy. Uses free sample data.
      Jupyter Notebook
      Apache License 2.0
      0100Updated May 3, 2024May 3, 2024
    • Introductory tutorial for Moonshot demonstrating data collection, universe selection, and backtesting of an end-of-day momentum strategy.
      Jupyter Notebook
      Apache License 2.0
      2700Updated Apr 25, 2024Apr 25, 2024
    • Introductory tutorial for Zipline demonstrating data collection, interactive research, and backtesting of a momentum strategy for equities. Uses free sample data.
      Jupyter Notebook
      Apache License 2.0
      41100Updated Apr 25, 2024Apr 25, 2024
    • sell-gap

      Public
      Intraday Zipline strategy for US stocks that sells stocks which gap below their moving average after previously trading above it. Demonstrates live trading.
      Jupyter Notebook
      Apache License 2.0
      2200Updated Apr 24, 2024Apr 24, 2024
    • Learn quantitative finance with this comprehensive lecture series. Adapted from the Quantopian Lecture Series. Uses free sample data.
      Jupyter Notebook
      Other
      16133500Updated Apr 23, 2024Apr 23, 2024
    • Learn how to research fundamental factors using Pipeline, Alphalens, and Sharadar price and fundamental data.
      Jupyter Notebook
      Apache License 2.0
      8900Updated Apr 23, 2024Apr 23, 2024
    • trend-day

      Public
      Intraday momentum strategy that buys (sells) leveraged ETFs late in the trading session following a significant intraday gain (loss) and holds until the close. From Ernie Chan's book Algorithmic Trading. Runs in Moonshot.
      Jupyter Notebook
      Apache License 2.0
      72400Updated Apr 23, 2024Apr 23, 2024
    • In-depth walkthrough of Pipeline, an API for filtering and performing computations on large universes of securities. The Pipeline API is part of Zipline but can also be used on a standalone basis.
      Jupyter Notebook
      Apache License 2.0
      6900Updated Apr 23, 2024Apr 23, 2024
    • Pairs trading strategy that includes a research pipeline for identifying and selecting pairs. Tests all possible pairs in a universe for cointegration using the Johansen test, then runs in-sample backtests on all cointegrating pairs, then runs an out-of-sample backtest on the 5 best performing pairs.
      Jupyter Notebook
      Apache License 2.0
      153400Updated Apr 23, 2024Apr 23, 2024
    • Machine learning strategy that trains the model using "everything and the kitchen sink": fundamentals, technical indicators, returns, price levels, volume and volatility spikes, liquidity, market breadth, and more. Runs in Moonshot. Utilizes data from Sharadar and IB.
      Jupyter Notebook
      Apache License 2.0
      91400Updated Apr 23, 2024Apr 23, 2024
    • fx-bizday

      Public
      Intraday forex strategy that exploits the tendency of currencies to depreciate during local business hours and appreciate during foreign business hours.
      Jupyter Notebook
      Apache License 2.0
      4500Updated Apr 23, 2024Apr 23, 2024
    • calspread

      Public
      Intraday trading strategy for futures calendar spreads. Uses crude oil futures and 1-minute bid/ask bars from Interactive Brokers with a Bollinger Band mean reversion strategy. Runs in Moonshot. Demonstrates using exchange native spreads for live/paper trading, and non-native spreads for backtesting.
      Jupyter Notebook
      Apache License 2.0
      81100Updated Apr 23, 2024Apr 23, 2024
    • Tutorial for importing historical futures data from a third-party data provider and combining it with recent data from Interactive Brokers in a Zipline bundle.
      Jupyter Notebook
      Apache License 2.0
      0000Updated Dec 14, 2023Dec 14, 2023
    • Jupyter Notebook
      2100Updated Oct 18, 2023Oct 18, 2023
    • Trading strategies used to test the speed of Moonshot, Zipline, and Lean. See https://www.quantrocket.com/blog/backtest-speed-comparison/ for the results.
      Python
      Apache License 2.0
      2300Updated Aug 8, 2023Aug 8, 2023
    • Comparative analysis of stock market characteristics for 17 countries, including number of listings, short sale availability, volatility, distribution of sectors, etc.
      Jupyter Notebook
      Apache License 2.0
      4200Updated Jun 1, 2023Jun 1, 2023
    • vmot

      Public
      Value/Momentum/Trend strategy modeled on Alpha Architect's VMOT ETF.
      Jupyter Notebook
      Apache License 2.0
      3700Updated Jun 1, 2023Jun 1, 2023
    • qval

      Public
      Value strategy for US stocks modeled on Alpha Architect's QVAL ETF, using enterprise multiple and Piotroski F-Score to target cheap, high-quality stocks. Utilizes Sharadar fundamental and price data. Runs in Moonshot.
      Jupyter Notebook
      Apache License 2.0
      8700Updated Jun 1, 2023Jun 1, 2023
    • qmom

      Public
      Long-only momentum strategy modeled on Alpha Architect's QMOM ETF, selecting stocks with the smoothest momentum and rebalancing the portfolio before quarter end to capture a window-dressing seasonality effect.
      Jupyter Notebook
      Apache License 2.0
      5800Updated Jun 1, 2023Jun 1, 2023
    • Intraday momentum strategy that buys (sells) the S&P 500 when the first half hour return and penultimate half hour return are both positive (negative). Uses VIX filter to restrict strategy to high volatility regimes. Uses 30-minute data from Interactive Brokers. Runs in Moonshot.
      Jupyter Notebook
      Apache License 2.0
      1700Updated Jun 1, 2023Jun 1, 2023
    • Moonshot strategy that shorts stocks that fell 10% or more the previous day. Demonstrates running a multi-country backtest to find where an anomaly works best. Uses global equities data from EDI.
      Jupyter Notebook
      Apache License 2.0
      2000Updated Jun 1, 2023Jun 1, 2023
    • dual moving average crossover strategy for backtrader
      Jupyter Notebook
      Apache License 2.0
      3400Updated Jun 1, 2023Jun 1, 2023
    • benchmark

      Public
      Equal-weighted and dollar-volume-weighted benchmark strategies for Moonshot
      Python
      Apache License 2.0
      1100Updated Jun 1, 2023Jun 1, 2023
    • A simple introduction to Jupyter notebooks, to demonstrate how cloning works.
      Jupyter Notebook
      Apache License 2.0
      1100Updated Nov 15, 2022Nov 15, 2022
    • futures pairs trading Zipline strategy
      Jupyter Notebook
      Apache License 2.0
      4210Updated Nov 3, 2018Nov 3, 2018
    • hml

      Public
      HML (High Minus Low) strategy for Moonshot and Zipline, using Reuters Fundamentals
      Python
      Apache License 2.0
      2100Updated Oct 27, 2018Oct 27, 2018