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
    A Microsoft Azure Web App project named Covid 19 Predictor using Machine learning Model

    A Microsoft Azure Web App project named Covid 19 Predictor using Machine learning Model (Random Forest Classifier Model ) that helps the user to identify whether someone is showing positive Covid sym

    Priyansh Sharma 2 Oct 06, 2022
    Python/Sage Tool for deriving Scattering Matrices for WDF R-Adaptors

    R-Solver A Python tools for deriving R-Type adaptors for Wave Digital Filters. This code is not quite production-ready. If you are interested in contr

    8 Sep 19, 2022
    Banpei is a Python package of the anomaly detection.

    Banpei Banpei is a Python package of the anomaly detection. Anomaly detection is a technique used to identify unusual patterns that do not conform to

    Hirofumi Tsuruta 282 Jan 03, 2023
    Basic Docker Compose for Machine Learning Purposes

    Docker-compose for Machine Learning How to use: cd docker-ml-jupyterlab

    Chris Chen 1 Oct 29, 2021
    icepickle is to allow a safe way to serialize and deserialize linear scikit-learn models

    icepickle It's a cooler way to store simple linear models. The goal of icepickle is to allow a safe way to serialize and deserialize linear scikit-lea

    vincent d warmerdam 24 Dec 09, 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
    Production Grade Machine Learning Service

    This project is made to help you scale from a basic Machine Learning project for research purposes to a production grade Machine Learning web service

    Abdullah Zaiter 10 Apr 04, 2022
    Built various Machine Learning algorithms (Logistic Regression, Random Forest, KNN, Gradient Boosting and XGBoost. etc)

    Built various Machine Learning algorithms (Logistic Regression, Random Forest, KNN, Gradient Boosting and XGBoost. etc). Structured a custom ensemble model and a neural network. Found a outperformed

    Chris Yuan 1 Feb 06, 2022
    A Multipurpose Library for Synthetic Time Series Generation in Python

    TimeSynth Multipurpose Library for Synthetic Time Series Please cite as: J. R. Maat, A. Malali, and P. Protopapas, “TimeSynth: A Multipurpose Library

    278 Dec 26, 2022
    Binary Classification Problem with Machine Learning

    Binary Classification Problem with Machine Learning Solving Approach: 1) Ultimate Goal of the Assignment: This assignment is about solving a binary cl

    Dinesh Mali 0 Jan 20, 2022
    Houseprices - Predict sales prices and practice feature engineering, RFs, and gradient boosting

    House Prices - Advanced Regression Techniques Predicting House Prices with Machine Learning This project is build to enhance my knowledge about machin

    1 Jan 01, 2022
    Data Efficient Decision Making

    Data Efficient Decision Making

    Microsoft 197 Jan 06, 2023
    Add built-in support for quaternions to numpy

    Quaternions in numpy This Python module adds a quaternion dtype to NumPy. The code was originally based on code by Martin Ling (which he wrote with he

    Mike Boyle 531 Dec 28, 2022
    Distributed training framework for TensorFlow, Keras, PyTorch, and Apache MXNet.

    Horovod Horovod is a distributed deep learning training framework for TensorFlow, Keras, PyTorch, and Apache MXNet. The goal of Horovod is to make dis

    Horovod 12.9k Jan 07, 2023
    Winning solution for the Galaxy Challenge on Kaggle

    Winning solution for the Galaxy Challenge on Kaggle

    Sander Dieleman 483 Jan 02, 2023
    A scikit-learn based module for multi-label et. al. classification

    scikit-multilearn scikit-multilearn is a Python module capable of performing multi-label learning tasks. It is built on-top of various scientific Pyth

    802 Jan 01, 2023
    Compare MLOps Platforms. Breakdowns of SageMaker, VertexAI, AzureML, Dataiku, Databricks, h2o, kubeflow, mlflow...

    Compare MLOps Platforms. Breakdowns of SageMaker, VertexAI, AzureML, Dataiku, Databricks, h2o, kubeflow, mlflow...

    Thoughtworks 318 Jan 02, 2023
    A toolkit for geo ML data processing and model evaluation (fork of solaris)

    An open source ML toolkit for overhead imagery. This is a beta version of lunular which may continue to develop. Please report any bugs through issues

    Ryan Avery 4 Nov 04, 2021
    This repository contains full machine learning pipeline of the Zillow Houses competition on Kaggle platform.

    Zillow-Houses This repository contains full machine learning pipeline of the Zillow Houses competition on Kaggle platform. Pipeline is consists of 10

    2 Jan 09, 2022
    PROTEIN EXPRESSION ANALYSIS FOR DOWN SYNDROME

    PROTEIN-EXPRESSION-ANALYSIS-FOR-DOWN-SYNDROME Down syndrome (DS) is a chromosomal disorder where organisms have an extra chromosome 21, sometimes know

    1 Jan 20, 2022