This software is not intended to be used as financial advice!
Created by The Four Headless Horseman
“The algo-trader you set and forget.”
There are a multitude of trading strategies, indicators, and methods to enter the market in an effective way. We, at The Four Headless Horsemen (T4HH), want to allow you, as a user, to personally select or utilize a pre-selected strategy for our algorithm to make winning trades from your selections. The ideology is that we ultimately want you, as a user, to have full control of trades to match (if not exceed) the market in performance based on your personal preferences, while providing a unique user experience that will ultimately lead to a “Set it and Forget it” trading profile.
We want you as a user to be able to select a short term trading strategy utilizing our algorithm and machine learning models to identify and execute winning trades based on your preferences without being managed (headless).
We chose 4 models and compared their accruacy and recall in predicting market signals based on historical price data:
Click here to read more about our project plan
import questionary
import fire
import pandas as pd
import sqlalchemy
from pathlib import Path
import shelve
import os
import tensorflow as tf
from tensorflow.keras.layers import Dense
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import LSTM
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import StandardScaler,OneHotEncoder,MinMaxScaler
from sklearn.metrics import mean_squared_error, confusion_matrix, classification_report
from holoviews.plotting.links import RangeToolLink
import matplotlib.pyplot as plt
import math
from numpy import array
import numpy as np
from datetime import date
import mplfinance as mpf
.env
file with a finnhub api key (Obtained here) and save it in the root folder in the following format:
FINNHUB_API_KEY="XXXXXXXXXXXXXXXXXXXX"
python analyze_ticker.py
What stock ticker should I look up?
Once prompted, input a ticker into the CLI (all caps).
Once the stock is selected, you will be prompted with a list of candlestick patterns you are welcome to choose. For more information about various candlestick patterns please check out this link
You will be prompted with overlap studies that you are welcome to choose. For more information about overlap studies, please check out this link
You will be prompted with momentum indicators you are welcome to choose. For more information about mometum indicators, please check out this link
You will be prompted with volatility indicators that you are welcome to choose. For more information about volatility indicators, please check out this link
This program was originally started as a student project -Andrew Au -Billy Bishop -Scott Slusher -Remy Dillenseger
This software is not intended to be used as financial advice!
Copyright (c) 2021
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.