Giter VIP home page Giter VIP logo

sectorrotationusmarkets2022's Introduction

SectorRotationUSMarkets2022

Demonstrating Sector Rotation Dynamics through Timely Identification of Stock Bottoms of Various Sectors during the 2022 Bear Market

  • "Sector rotation is the movement of money invested in stocks from one industry to another as investors and traders anticipate the next stage of the economic cycle" - Investopedia
  • Conducting a historical analysis of the sequence in which individual sector bottoms occur in relation to the market bottom (S&P500) can provide valuable insights into market timing.
  • An Excel file named 'companyProfile_NYSE_NASDAQ_NSE_TSX_BSE.xlsx' contains stock symbols from various sectors, industries, and exchanges: NYSE, NASDAQ, NSE, TSX, and BSE. This file essentially serves as a reference for industries and sectors, encompassing around 13,000 symbols. Its compilation was established through a separate personal project.
  • A self-explanatory script titled 'main_SectorRotation.py' calls upon historical closing price data from the financialmodelingprep.com API (subscription required) for each symbol. It subsequently determines the lowest points of the stocks around the bear market bottom of 2022. These individual stock bottoms, along with their respective sectors and industries, are stored in 'stock_bottoms_final.xlsx'. The relative difference of a stock bottom relative the 2022 market bottom is calculated and the average of these relative differences is grouped by sectors (and also for various industries). The relative differences are presented in terms of days in relation to the market bottom, as indicated in the 'days_wrBottom' column, as demonstrated in the snapshot below.

sectorrotationusmarkets2022's People

Contributors

apsinghanalytics avatar

Watchers

 avatar

Forkers

sahandsydney

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.