Giter VIP home page Giter VIP logo

QuantRocket Codeload Library's Projects

backtest-speed-comparison icon backtest-speed-comparison

Trading strategies used to test the speed of Moonshot, Zipline, and Lean. See https://www.quantrocket.com/blog/backtest-speed-comparison/ for the results.

benchmark icon benchmark

Equal-weighted and dollar-volume-weighted benchmark strategies for Moonshot

borrow-fees-alpha icon borrow-fees-alpha

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.

brain-sentiment icon brain-sentiment

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.

calspread icon calspread

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.

dead-cat-drop icon dead-cat-drop

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.

first-last icon first-last

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.

fundamental-factors icon fundamental-factors

Learn how to research fundamental factors using Pipeline, Alphalens, and Sharadar price and fundamental data.

futures-import icon futures-import

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.

fx-bizday icon fx-bizday

Intraday forex strategy that exploits the tendency of currencies to depreciate during local business hours and appreciate during foreign business hours.

global-market-profiles icon global-market-profiles

Comparative analysis of stock market characteristics for 17 countries, including number of listings, short sale availability, volatility, distribution of sectors, etc.

hello-jupyter icon hello-jupyter

A simple introduction to Jupyter notebooks, to demonstrate how cloning works.

hml icon hml

HML (High Minus Low) strategy for Moonshot and Zipline, using Reuters Fundamentals

kitchensink-ml icon kitchensink-ml

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.

moonshot-intro icon moonshot-intro

Introductory tutorial for Moonshot demonstrating data collection, universe selection, and backtesting of an end-of-day momentum strategy.

moonshotml-intro icon moonshotml-intro

Introductory tutorial for MoonshotML demonstrating walk-forward optimization of a simple machine learning strategy. Uses free sample data.

pairs-pipeline icon pairs-pipeline

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.

pipeline-tutorial icon pipeline-tutorial

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.

qmom icon qmom

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.

quant-finance-lectures icon quant-finance-lectures

Learn quantitative finance with this comprehensive lecture series. Adapted from the Quantopian Lecture Series. Uses free sample data.

qval icon qval

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.

sell-gap icon sell-gap

Intraday Zipline strategy for US stocks that sells stocks which gap below their moving average after previously trading above it. Demonstrates live trading.

trend-day icon trend-day

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.

vmot icon vmot

Value/Momentum/Trend strategy modeled on Alpha Architect's VMOT ETF.

zipline-intro icon zipline-intro

Introductory tutorial for Zipline demonstrating data collection, interactive research, and backtesting of a momentum strategy for equities. Uses free sample data.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.