This page lets you enter multiple stock tickers (eg. AAPL, MSFT, GOOGL) and portfolio expressions (eg. 1.75*NVDA+1.5*AMZN+4.25*KO) and compare their returns visually against a benchmark (like SPY). It’s built with Python and Flask on the backend. Data comes from Yahoo Finance via the yfinance library, pandas crunches the numbers, and matplotlib generates the plots. The…
Portfolio
SOAP: Social Polling
Constructive political criticism online is hard to find. Discussions quickly turn mean, and even minor disagreements can escalate into major arguments. Messages often get lost if one’s audience is too small, and misunderstood words can lead to backlash. That’s where Soap comes in—a new kind of social platform designed to change the way we talk…
Based News Reader
This Python script fetches the latest Google News RSS headlines for a user-supplied list of topics and regularly updates a static HTML page. Google Gemini prioritizes the headlines based on the user’s preferences. Designed to be scheduled with cron on any Unix-based system. 🗞️ news.blakerayvid.com How It Works View on GitHub
TQQQ Trading Algorithm
Developing a successful trading algorithm is about finding the right balance between capturing market gains and managing risks. In this capstone project for the Flatiron School Data Science Bootcamp, I created and refined a QuantConnect trading algorithm that combines a dynamic strategy for SPY with a risk-managed approach for TQQQ. The goal was to optimize…
Sentiment Classifier
My Flatiron School Data Science Bootcamp Phase 3 Project was to address the business problem of brand reputation management by monitoring and analyzing Twitter sentiment. The goal was to develop a machine learning model that can correctly classify tweets as positive, negative, or neutral, and provide insights to improve brand perception and engagement strategies. View…
Skyrim Alchemy Optimizer
This Jupyter notebook can be used to maximize alchemy profitability using the ingredients you have on hand in The Elder Scrolls V: Skyrim. It uses integer linear programming from scipy.optimize.milp to determine which potions to make, and in what quantities, to maximize total value. It needs a csv file of the ingredients you have with…
RouteCat
This is a clustering traveling salesman solver for delivery, alleycats and more. Give the app a list of addresses and it will return the optimal groups for up to 4 drivers and provide the order to visit the stops to minimize travel time, and a map with the ideal route. 🔗 routecat.blakerayvid.com View on…
Efficient Portfolio
This is a Python implementation of Robert C. Merton’s efficient or minimum-variance portfolio algorithm from the paper An Analytic Derivation of the Efficient Portfolio Frontier (1972). Building on the work of Harry Markowitz, Merton describes a way to assign weights to a list of securities to make a portfolio that has the lowest variance in…