Skip to content

This is a repo to store code implementations and backtest results in a jupyter notebook, for strategies derived from various sources, incl. books, articles, papers

Notifications You must be signed in to change notification settings

chickenopoulos/strategy-library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This repository is a curated collection of quantitative trading strategies implemented in Python. Each notebook demonstrates a complete strategy — from data loading and signal generation to backtesting and performance evaluation — inspired by academic research, trading literature, and practitioner insights.

The goal of this library is to provide:

  • Reproducible strategy implementations
  • Clear, documented notebooks for learning and experimentation
  • Foundations for extension, so you can adapt them to your own research and trading ideas

Buy The Fear, Sell The Greed

This is a notebook that implements the strategies described in the book "Buy The Fear, Sell The Greed" by Larry Connors.

Alt text

Notebook : Buy The Fear

Source : https://www.amazon.in/Buy-Fear-Sell-Greed-Behavioral/dp/0578206501

Trend Following by Carlo Zarattini

This notebook contains the Python implementation of the rules of the Trend Following strategy by Carlo Zarattini et al., along with a few extra personal ideas

Alt text

Notebook : Trend-Following by Carlo Zarattini

Source : https://papers.ssrn.com/sol3/papers.cfm?abstract_id=5084316

Momentum RSI in Crypto by Pedma, Trading Research Hub (Substack)

Contains the implementation of the momentum RSI strategy proposed in the substack article and evaluates the signal strength and strategy performance.

Alt text

Notebook : Momentum RSI in Crypto

Source : https://tradingresearchub.com/p/flipping-the-rsi-script-when-overbought?lli=1

Simple Pairs Trading

As the title says, this is a simple pairs trading notebook. I load up the data, pick a high correlated pair, then trade the z-score of its spread long/short. Although simple, it appears to be high effective, thus I will work on the proposed next steps (see at the bottom of the notebook) when pairs trading comes up again as a theme in my backlog (soon).

Alt text

Notebook : Simple Pairs Trading

Regime-based Breakout in Crypto

A simple breakout strategy using the donchian upper channels, with a twist - we only enter if the asset is having a favorable 14-day beta to the market (total crypto mcap). We measure the market's ROC over the last 14 days, and we compare the ROC's sign with the asset's beta sign. If the are aligned (+/+ or -/-) then the token is moving towards a favorable direction.

Alt text

Notebook : Regime-based Breakout in Crypto

Donchian Breakout on Bitcoin

Yet again a simple breakout system, tested on Bitcoin. Its performance and simplicity are amazing. Tested over other tokens, incl. ETH and SOL, and they all perform incredibly well, outperforming buy and hold consistently. This notebook serves as a solid foundation towards to construction of a portfolio of breakout systems in crypto (to be explored).

Alt text

Notebook : Donchian Breakout on Bitcoin

Market-neutral Percentile-rank Momentum Portfolio

A market-neutral long/short crypto strategy that ranks tokens using a composite percentile-based momentum factor. It holds long positions in the top 10 and short positions in the bottom 10 tokens, aiming to capture relative performance trends while minimizing market exposure.

Alt text

Notebook : Percentile-rank Momentum Strategy

Market-wide Regime-based Mean Reversion

This is an extremely simple, yet robust, mean reversion system. It enters either long or short (depending on the position of the price against the 50-day SMA, which acts as a regime filter) based on the position of the 14-day Z-Score. Signals are derived from Bitcoin and tested on the top tokens by market cap, showing robustness across the board. A 2X Leveraged Portfolio of these tokens exhibits interestingly solid performance.

Alt text

Notebook : Market-wide Regime-based Mean Reversion

About

This is a repo to store code implementations and backtest results in a jupyter notebook, for strategies derived from various sources, incl. books, articles, papers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published