I Built a Simple Trading Algorithm in Python and You Can Too

Algorithmic Trading and Automation with Python

Marco Santos
The Startup

--

Photo by Austin Distel on Unsplash

“In the twenty-first century, the robot will take the place which slave labor occupied in ancient civilization.” — Nikola Tesla

UPDATE: The main website this article discusses has been shutdown and the resulting walkthrough may now be obsolete.

Money makes the world go ‘round. Or at least that’s what the world will tell you. For the past few years, jobs around the world have been automated or replaced by machines in order to maximize profits. Workers on Wall Street, such as stock brokers, have also experienced this. The implementation of computers and access to the internet have made the traditional stock broker largely obsolete. But stock trading still requires some human element to it.

Some people might trade based on feeling or intuition, which a machine cannot replicate at this time. Others trade based on a strict set of rules or guidelines which can be closely, if not completely, replicated by a computer. So today, let’s try and replicate a simple set of rules by coding them in Python. The code we will write will enable us to trade stocks automatically with no need to observe stock prices or stock…

--

--

Marco Santos
The Startup

NYC Data Scientist specializing in AI/ML with a passion for code | Let’s connect! — linkedin.com/in/marco-s-santos.