Skip to content

Blake Rayvid

Menu
  • About
  • Portfolio
Menu

Category: Finance

Quantitative trading algorithms, options pricing, and portfolio optimization and research tools.

Compare Stock Returns

Posted on June 1, 2025May 11, 2026 by Blake

This page lets you enter multiple stock tickers (eg. AAPL, MSFT, GOOGL) and even custom portfolio expressions (eg. 0.5*NVDA, 0.25*AMZN, 0.25*KO) and compare their performance against a benchmark (eg. SPY) over any time period. It’s built with Python and Flask on the backend. Data comes from Yahoo Finance via the yfinance library, pandas crunches the…

Continue reading

TQQQ Trading Algorithm

Posted on August 21, 2024May 12, 2026 by Blake

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…

Continue reading

Efficient Portfolio

Posted on December 7, 2020May 12, 2026 by Blake

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…

Continue reading

Option Pricing

Posted on December 9, 2018May 12, 2026 by Blake

This is a set of MATLAB functions for calculating vanilla option prices, along with several examples of how the functions can be used. Developed from theory presented in Option Trading by Euan Sinclair. 🔗 View on GitHub  

Continue reading

Categories

  • Data Science
  • Exploration
  • Finance
  • Health
  • Interactive
  • Optimization
  • Utilities

Tags

D3.js Desmos Docker Express.js FFmpeg Flask Gemini API Google Maps API HTML/CSS/JS MATLAB Matplotlib Netlify NetworkX Next.js NLP Node.js NumPy P5.js Pandas Pillow PostgreSQL Python QuantConnect Railway React.js Scikit-Learn SciPy TensorFlow Tesseract OCR WeasyPrint YFinance API

© 2026 Blake Rayvid. All rights reserved.