Feb 15, 2021

Two ways to download stock data with Python.

There are two ways that I download stock data with Python. The first way is using the AlphaAdvantage API and the second way is by using the Alpac

Feb 15, 2021

Calculate the Relative Strength Index (RSI) with Python.

The Python RSI function takes a Pandas DataFrame as a parameter and calculates the average gains and the average losses and then returns the RSI

Dec 14, 2020

Back-test your stock trading strategies with Python.

If you day trade or swing trade stocks on the stock market you are probably familiar with the concept of back-testing. When you back test a stock

Dec 3, 2020

Print out a Python exception error with line number.

Python provides many ways to handle exception within Python programs. When I create programs I usually log errors to a log file as to not clutter

Dec 2, 2020

Download stock price data for use in Python.

This code will download stock data from the Alpca.Markets API and print the data. The data returns is the time, close, volume, low, high and open

Oct 31, 2019

A ThinkOrSwim indicator to help spot the SPY dips.

Buying the dips is not as easy as they say but it's also not too difficult once you get the hang of it. I accidentally found a profitable trading

Oct 26, 2019

$3000 profit SPY strategy discovered via Python back-testing.

I was making a youtube video about a strategy I heard about on twitter and some other stock market chat rooms. The strategy consisted of buying a

Oct 25, 2019

Simple code to place a stock order with Alpaca and Python.

I'm loving Alpaca more and more for back-testing and automated trading. One of the first items on my to-do list was to create very simply code fo

Oct 22, 2019

The Corrected Volume Indicator.

The Correct Volume Indicator is a stock indicator that I came up with to show the true representation of who owns the volume. Imagine the entire

Feb 22, 2019

Install CUDA 10 on KDEneon and Ubuntu 18.04.

CUDA is parallel computing platform developed my NVIDIA, the top video card producer for both PC and MAC platform. Parallel computing allows for