This repository is for a python bot that can send stock advice via email using the 50 and 20 day EMA (Exponential Moving Average) crossover points of a stock. This was a personal project for me that served as an introduction into trading bot's and deploying code remotely on a server.
The purpose of this code is to track a few stocks of interest using EMA's, and send an email to the user when there is a crossover of these EMA's. A crossover indicates either a buying or selling point. The following image depicts an example of two different EMA's and their crossover points.
Image Source: Generating Trade Signals using Moving Average(MA) Crossover Strategy — A Python implementation
The code was influenced by Pratik Nabriya's article: Generating Trade Signals using Moving Average(MA) Crossover Strategy — A Python implementation.
This project was done as a fun introduction into developing a trading bot, and SHOULD NOT be used as financial advice in any way.
The following code will install the necessary python packages required to run the code:
pip install yfinance numpy pandas
At the time of writing this I am using python 3.7.10, however other versions should work fine, as long as the packages listed above can be installed.