Code Monkey home page Code Monkey logo

automated_stock_trading_and_analysis's Introduction

automated_stock_trading_and_analysis

sharpe_ratio.py

Runs a Monte Carlo simulation for N number of random portfolios composed of a list of tickers for a specified number of years. Plots all simulated portfolios and can return the maximum sharpe ratio and the ticker weights for the portfolio which this occurs. This is the "optimal" risk-adjusted portfolio.
sharpe_figure

black_scholes.py

Solves the Black-Scholes partial differential equation using the finite-difference method to estimate options pricing
Equation
where V(t) is the option value, S(t) is the price of the underlying asset, t is time to expiration (with units of years), sigma is the volatility of the asset, and r is the risk free interest rate.
black_scholes3d
payoff_at_expiri\

geometric_brownian_motion.py

An assumption of the Black-Scholes PDE is that the price movement of the underlying security follows "geometric brownian motion" or a "random walk". This program simulates the stochastic differential equation driving brownian motion.

gmb_001\

gmb_simulation

charting_functions.py

Creates charts to give a high level overview of a Robinhood portfolio. Uses the robin-stocks package by jmfernandes. Must create a config.json file in the format as follows:

  {
    "username": "[email protected]",
    "password": "password123"
  }

pct_return_bar\

portfolio_pie\

stocks_pie\

wallstreetbets.py

Counts mentions of tickers on r/wallstreetbets and creates a fund weighted by the number of mentions. Allows the ability to change the weight of mentions based on time periods of week, month, and year.

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.