# Algorithmic Trading in Python: Bollinger Bands

## Using Python to “Buy Low and Sell High”

Bollinger Bands are a type of technical analysis indicator created by John Bollinger. The bands serve as a trading envelope that provide a feel for a relative measurement for high and low points that can be used as overbought and oversold levels.

Bollinger Bands typically include two boundary lines (upper…

# The Sharpe Ratio with Python (From Scratch)

## Evaluating a Stock’s Risk with Python

One of the most commonly used and talked about risk measures in investing is the Sharpe Ratio. Unlike the Coefficient of Variation, which measures the risk per unit of return, the Sharpe Ratio tells an analyst the return per unit of risk. …

# Algorithmic Trading in Python: RSI

## One of the most popular technical indicators

The Relative Strength Index (RSI) is a popular technical indicator and momentum oscillator, developed by J. Welles Wilder in 1978. …

# Algorithmic Trading in Python: MACD

## The Moving Average Convergence Divergence Indicator

The Moving Average Convergence Divergence (MACD) is a popular technical indicator associated with trend following and momentum. The MACD indicator involves a few calculations and a few trend lines:

1. MACD Line — This line is the difference between the 26-day exponential moving average line and the 12-day exponential moving average…

# Introduction to Pot Odds and Equity

Pot odds, simply put, are the relationships between the total pot size and the bet that you must call to see the next card. Pot odds explain the amount of money you will win for every dollar you put into it yourself.

To calculate pot odds, simply divide the amount…

# A Brief Introduction to Unsupervised Learning

## Clustering in Python

Summary: In this post I will discuss the details of unsupervised machine learning and its applications. Code examples will be shown to demonstrate certain techniques.

# What is Unsupervised Learning?

Unsupervised learning is a branch of machine learning that is used to find underlying patterns in data and is often used in exploratory data analysis…

Does it work?

# Simple Linear Regression

I will briefly touch on simple linear regression in this post, but I do have an article specifically about simple linear regression using Python that can be found here and it may be a bit more detailed and helpful.

Linear regression can be used to find a…

# Algorithmic Trading in Python: Simple Moving Averages

## Its easier than you think…

A moving average is one of the most basic technical indicators used to analyze stocks. “Moving average” is a broad term and there are many variations used by analysts to smooth out price data and analyze trends.

Moving averages will require a time period for calculations. For example, an investor…

# Simple Linear Regression in Python (From Scratch)

## Coding a line of best fit

Simple linear regression is a concept that you may be familiar with already from middle school or high school. If you have ever heard of a slope and an intercept, or y = mx + b, then you have already learned about simple linear regression!

# What is Simple Linear Regression?

Simple linear regression is a…

# Easiest Guide to Getting Stock Data With Python

I recently finished up an introductory course for data science at my university and for my final project, I decided I wanted to work with stock market data. … ## Aidan Wilson

Data Science and Economics