Test-driven development (TDD) is a software development process wherein the software requirements are first broken up into a series of unit tests and the software is then written to satisfy these unit tests. For example,…
Using Modern Portfolio Theory to Build an Optimized Dividend Income Portfolio with Python
NOTE: this is not investment advice. In this post, two big questions are answered with respect to income investing: what is risk, and what is the expected return for dividend stocks. After answering these questions,…
A General-Purpose File Writing Job Queue in C++
Note: code for this project can be found on the project’s GitHub page. Inspiration In a series of recent posts, I wrote about a combinatorial object called a Latin square, a class in written C++…
Read more of A General-Purpose File Writing Job Queue in C++
Using Python’s Multiprocessing Library to Improve Algorithm Runtime
In a previous post, I wrote about a combinatorial object known as a Latin square. I also discussed some research I had previously done and some research directions for working with these objects. Particularly, I…
Read more of Using Python’s Multiprocessing Library to Improve Algorithm Runtime
Plotting Data in C++
In most of the work I do, the ability to easily plot data in Python is a major determinate when choosing a programming language for a project. A while back I was looking into what…
Taylor Series in Python
The Taylor series of a function is an infinite sum of terms that uses information about the derivative of the function to create a polynomial that approximates the function. More accurate approximations can be determined…
The Problem with Stock Path Generation
Recently I’ve been reading Benoit Mandelbrot’s book The (Mis)Behavior of Markets: A Fractal View of Financial Turbulence. Early in this book Mandelbrot discusses one major issue with the underlying assumption of certain financial simulations. In particular,…
Trading Trends with Bollinger Bands
Determining the trend of a stock price is very powerful when devising a technical trading system. If we are able to determine when a trend is reversing, that is reaching a top or a bottom,…
Improving the Results and Efficiency of My Options Trading GA
In a previous post, I wrote about a genetic algorithm (GA) whose goal is to find stocks that could potentially create a promising put-selling portfolio. Currently, the GA searches through stocks that offer weekly options…
Read more of Improving the Results and Efficiency of My Options Trading GA
Cluster Monitoring in Python with Glances
Some years ago my wife bought me a few (6) Raspberry Pi 3 B+ single board computers for Christmas so that I could experiment with creating and managing clusters of computers (it’s what I’d asked…