Code Monkey home page Code Monkey logo

portfolio-stats's Introduction

Portfolio Strategy Analysis

About the Project

Portfolio Strategy Analysis is a Streamlit application developed by Marc, designed to demonstrate the potential of simple investment strategies in outperforming the market over the long term. This project emphasizes the naive principle of maintaining an equal-weighted portfolio, ensuring that each addition to the portfolio is distributed equally among all positions.

Key Features

  • Equal-Weighted Portfolio Simulation: Analyze how an equal-weighted investment strategy performs over time.
  • Custom Portfolio Simulation: Create and track the performance of custom-made portfolios, allowing users to experiment with different compositions and strategies.
  • Focus on US and European Stocks: The app primarily deals with a mix of US and European stocks, reflecting the developer's personal investment focus.
  • Dynamic Portfolio: The model portfolio comprises fewer than 20 companies and is updated periodically, every 3 to 6 months, to adapt to changing market conditions.

How to Use

  1. Select a Strategy: Choose between an equal-weighted strategy or create your custom portfolio.
  2. Input Portfolio Details: For custom portfolios, input the specifics of your stock selection, focusing on US and European markets.
  3. Simulate Performance: The app will simulate and display the performance of your chosen portfolio strategy over the selected timeframe.
  4. Compare and Analyze: Evaluate the performance against market benchmarks to understand the efficacy of your strategy.

How to Run

To run the Portfolio Strategy Analysis application on your local machine, follow these steps:

  1. Create a Virtual Environment: Run python -m venv .venv in your terminal to create a new virtual environment.
  2. Activate the Virtual Environment:
    • For Windows, run .venv\Scripts\activate.
    • For macOS/Linux, run source .venv/bin/activate.
  3. Install Requirements: Install the necessary requirements by running pip install -r requirements.txt.
  4. Launch the Application: Start the Streamlit app by executing streamlit run streamlit-app.py.

Project Goals

The primary goal of this project is to showcase that simple, well-thought-out investment strategies can yield significant returns over the long term. It aims to provide a user-friendly platform for both novice and experienced investors to test and visualize different investment strategies.

Getting Started

To start using the Portfolio Strategy Analysis app, follow these steps:

  • Visit the Streamlit app link (insert link here).
  • Follow the on-screen instructions to simulate and analyze different investment strategies.

License

This project is licensed under the [MIT License](insert link to license).

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.