Predict profitability of trades based on indicator buy / sell signals

Overview

Predict profitability of trades based on indicator buy / sell signals

Trade profitability analysis for trades based on various indicators signals:

  • MACD
  • Simple Moving Average
  • Exponential Moving Average

  • Trading assumptions:
    1. Trade is profitable if, profit >0
    2. Buy / sell happen the following day of the signal
    3. Buy / sell are taken 10% from the open price towards close price

    Machine learning assumptions:
    • Binary classification: 1 - profit, 0 - loss
    • A separate model for each company / ticker
    • Model is trained vs optimal precision

    Machine learning models used:
    1. Linear Support Vector Classifier
    2. Decision Tree Classifier
    3. Random Forest Classifier
    4. Gradient Boosting Classifier
    5. XGBoost Classifier
    6. Keras classifier

    Trade analysis intermediate results:
    30-40% of trades based on indicator signals are profitable
    In general trades on SMA signals are more often profitable than the ones based on EMA signals

    Trade profitability predictions intermediate results (based on test data)/
    The precision of the predictions is oscilating around 70%, which is pretty good, considering that the analysts estimate other signals accuracy as 30 to 50% (double top, shoulder & arms, etc). This means, there is ~70% chance that predicted trade will be profitable (Reminder: profitable -> profit > 0)
    However, the recall is only around 15%, which means that very the model pick-up very few of the actually profitable trades.

    #Detailed analysis tbc

    Owner
    Tomasz Porzycki
    Tomasz Porzycki
    Implementation of K-Nearest Neighbors Algorithm Using PySpark

    KNN With Spark Implementation of KNN using PySpark. The KNN was used on two separate datasets (https://archive.ics.uci.edu/ml/datasets/iris and https:

    Zachary Petroff 4 Dec 30, 2022
    Iris species predictor app is used to classify iris species created using python's scikit-learn, fastapi, numpy and joblib packages.

    Iris Species Predictor Iris species predictor app is used to classify iris species using their sepal length, sepal width, petal length and petal width

    Siva Prakash 5 Apr 05, 2022
    ML Kaggle Titanic Problem using LogisticRegrission

    -ML-Kaggle-Titanic-Problem-using-LogisticRegrission here you will find the solution for the titanic problem on kaggle with comments and step by step c

    Mahmoud Nasser Abdulhamed 3 Oct 23, 2022
    PyPOTS - A Python Toolbox for Data Mining on Partially-Observed Time Series

    A python toolbox/library for data mining on partially-observed time series, supporting tasks of forecasting/imputation/classification/clustering on incomplete multivariate time series with missing va

    Wenjie Du 179 Dec 31, 2022
    Code Repository for Machine Learning with PyTorch and Scikit-Learn

    Code Repository for Machine Learning with PyTorch and Scikit-Learn

    Sebastian Raschka 1.4k Jan 03, 2023
    SPCL 48 Dec 12, 2022
    Warren - Stock Price Predictor

    Web app to predict closing stock prices in real time using Facebook's Prophet time series algorithm with a multi-variate, single-step time series forecasting strategy.

    Kumar Nityan Suman 153 Jan 03, 2023
    Automatic extraction of relevant features from time series:

    tsfresh This repository contains the TSFRESH python package. The abbreviation stands for "Time Series Feature extraction based on scalable hypothesis

    Blue Yonder GmbH 7k Jan 06, 2023
    Python Machine Learning Jupyter Notebooks (ML website)

    Python Machine Learning Jupyter Notebooks (ML website) Dr. Tirthajyoti Sarkar, Fremont, California (Please feel free to connect on LinkedIn here) Also

    Tirthajyoti Sarkar 2.6k Jan 03, 2023
    A naive Bayes model for cancer classification using a set of documents

    Naivebayes text classifcation model for cancer and noncancer documents Author: Alex King Purpose Requirements/files included How to use 1. Purpose The

    Alex W King 1 Nov 24, 2021
    Deploy AutoML as a service using Flask

    AutoML Service Deploy automated machine learning (AutoML) as a service using Flask, for both pipeline training and pipeline serving. The framework imp

    Chris Rawles 221 Nov 04, 2022
    A flexible CTF contest platform for coming PKU GeekGame events

    Project Guiding Star: the Backend A flexible CTF contest platform for coming PKU GeekGame events Still in early development Highlights Not configurabl

    PKU GeekGame 14 Dec 15, 2022
    Highly interpretable classifiers for scikit learn, producing easily understood decision rules instead of black box models

    Highly interpretable, sklearn-compatible classifier based on decision rules This is a scikit-learn compatible wrapper for the Bayesian Rule List class

    Tamas Madl 482 Nov 19, 2022
    Interactive Parallel Computing in Python

    Interactive Parallel Computing with IPython ipyparallel is the new home of IPython.parallel. ipyparallel is a Python package and collection of CLI scr

    IPython 2.3k Dec 30, 2022
    Time series changepoint detection

    changepy Changepoint detection in time series in pure python Install pip install changepy Examples from changepy import pelt from cha

    Rui Gil 92 Nov 08, 2022
    PySpark ML Bank Churn Prediction

    PySpark-Bank-Churn Surname: corresponds to the record (row) number and has no effect on the output. CreditScore: contains random values and has no eff

    kemalgunay 2 Nov 11, 2021
    A mindmap summarising Machine Learning concepts, from Data Analysis to Deep Learning.

    A mindmap summarising Machine Learning concepts, from Data Analysis to Deep Learning.

    Daniel Formoso 5.7k Dec 30, 2022
    Time Series Prediction with tf.contrib.timeseries

    TensorFlow-Time-Series-Examples Additional examples for TensorFlow Time Series(TFTS). Read a Time Series with TFTS From a Numpy Array: See "test_input

    Zhiyuan He 476 Nov 17, 2022
    A linear regression model for house price prediction

    Linear_Regression_Model A linear regression model for house price prediction. This code is using these packages, so please make sure your have install

    ShawnWang 1 Nov 29, 2021
    Can a machine learning project be implemented to estimate the salaries of baseball players whose salary information and career statistics for 1986 are shared?

    END TO END MACHINE LEARNING PROJECT ON HITTERS DATASET Can a machine learning project be implemented to estimate the salaries of baseball players whos

    Pinar Oner 7 Dec 18, 2021