Git Product home page Git Product logo

rickblien / sector-rotation-strategy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from everyfin-in/sector-rotation-strategy

0.0 0.0 0.0 245 KB

Equity Trading Strategy using systematic sector rotation. The strategy is based on part 1 (Rate of Change) of the paper written by Paolo Sassetti and Massimiliano Tani in 2003. The code implements the trading strategy using the 19 different sectors classified on BSE in India.

License: GNU General Public License v3.0

Jupyter Notebook 100.00%

sector-rotation-strategy's Introduction

sector-rotation-strategy

Equity Trading Strategy using on systematic sector rotation. The strategy is based on part 1 (Rate of Change) of the paper written by Paolo Sassetti and Massimiliano Tani in 2003.

Heuristic (rule-based) based equity trading strategies have existed for well over 50 years. Ben Graham’s value investing approach was by itself to some extent heuristic-based (low PE ratio, low debt to current assets ratio, positive EPS growth etc.). The advent of powerful computation tools and the availability of data has only accelerated research on these criteria-based trading models. Large hedge funds like Renaissance Technologies generate several terabytes of data each day and run advanced quantitative models to select stocks.

One such approach is the systematic sector-rotation strategy published by two Italian academics – Paolo Sassetti and Massimiliano Tani. The paper was originally published in 2003 and has been quoted in various subsequent research on this subject. At its heart, the ideas comprised in it are quite simple.

At different points in the economic cycle, different sectors tend to perform well. Financials and consumer discretionary perform well during the early stages of the business cycle as the availability of cheap credit gets firms and consumers borrowing. As the economic cycle improves further and more businesses start making capital investments, capital goods, industrial and technology companies tend to do well. As the economy starts contracting again, consumer staples and healthcare stocks tend to outperform other stocks. This trend has been quite well documented notably by Fidelity research. The sectors that have performed well in the recent past, will continue to perform well in the ‘recent’ future. This is at the crux of momentum-based strategies. Sassetti and Tani ran a backtesting algorithm to test their hypothesis that a systematic-sector rotation strategy based on momentum indicators will beat the benchmark over the long run. Lo and behold, they found evidence of significant outperformance. They tested their hypothesis using three different approaches. This code implements this trading strategy using the 19 different sectors in India's BSE. It will only cover the first approach published on the paper called Rate of Change.

A full description of the algorithm, the original paper and the results are on this link: https://everyfin.in/2021/03/26/equity-trading-strategy-systematic-sector-rotation/

sector-rotation-strategy's People

Contributors

everyfin-in avatar

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.