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 visual dataflow programming language for sklearn

    Persimmon What is it? Persimmon is a visual dataflow language for creating sklearn pipelines. It represents functions as blocks, inputs and outputs ar

    Álvaro Bermejo 194 Jan 04, 2023
    使用数学和计算机知识投机倒把

    偷鸡不成项目集锦 坦率地讲,涉及金融市场的好策略如果公开,必然导致使用的人多,最后策略变差。所以这个仓库只收集我目前失败了的案例。 加密货币组合套利 中国体育彩票预测 我赚不上钱的项目,也许可以帮助更有能力的人去赚钱。

    Roy 28 Dec 29, 2022
    A simple guide to MLOps through ZenML and its various integrations.

    ZenBytes Join our Slack Community and become part of the ZenML family Give the main ZenML repo a GitHub star to show your love ZenBytes is a series of

    ZenML 127 Dec 27, 2022
    Implementation of different ML Algorithms from scratch, written in Python 3.x

    Implementation of different ML Algorithms from scratch, written in Python 3.x

    Gautam J 393 Nov 29, 2022
    Kaggle Competition using 15 numerical predictors to predict a continuous outcome.

    Kaggle-Comp.-Data-Mining Kaggle Competition using 15 numerical predictors to predict a continuous outcome as part of a final project for a stats data

    moisey alaev 1 Dec 28, 2021
    Kubeflow is a machine learning (ML) toolkit that is dedicated to making deployments of ML workflows on Kubernetes simple, portable, and scalable.

    SDK: Overview of the Kubeflow pipelines service Kubeflow is a machine learning (ML) toolkit that is dedicated to making deployments of ML workflows on

    Kubeflow 3.1k Jan 06, 2023
    A simple python program which predicts the success of a movie based on it's type, actor, actress and director

    Movie-Success-Prediction A simple python program which predicts the success of a movie based on it's type, actor, actress and director. The program us

    Mahalinga Prasad R N 1 Dec 17, 2021
    AutoOED: Automated Optimal Experiment Design Platform

    AutoOED is an optimal experiment design platform powered with automated machine learning to accelerate the discovery of optimal solutions. Our platform solves multi-objective optimization problems an

    Yunsheng Tian 107 Jan 03, 2023
    A logistic regression model for health insurance purchasing prediction

    Logistic_Regression_Model A logistic regression model for health insurance purchasing prediction This code is using these packages, so please make sur

    ShawnWang 1 Nov 29, 2021
    This is the code repository for Interpretable Machine Learning with Python, published by Packt.

    Interpretable Machine Learning with Python, published by Packt

    Packt 299 Jan 02, 2023
    Combines Bayesian analyses from many datasets.

    PosteriorStacker Combines Bayesian analyses from many datasets. Introduction Method Tutorial Output plot and files Introduction Fitting a model to a d

    Johannes Buchner 19 Feb 13, 2022
    Simple and flexible ML workflow engine.

    This is a simple and flexible ML workflow engine. It helps to orchestrate events across a set of microservices and create executable flow to handle requests. Engine is designed to be configurable wit

    Katana ML 295 Jan 06, 2023
    Used Logistic Regression, Random Forest, and XGBoost to predict the outcome of Search & Destroy games from the Call of Duty World League for the 2018 and 2019 seasons.

    Call of Duty World League: Search & Destroy Outcome Predictions Growing up as an avid Call of Duty player, I was always curious about what factors led

    Brett Vogelsang 2 Jan 18, 2022
    Toolkit for building machine learning models that generalize to unseen domains and are robust to privacy and other attacks.

    Toolkit for Building Robust ML models that generalize to unseen domains (RobustDG) Divyat Mahajan, Shruti Tople, Amit Sharma Privacy & Causal Learning

    Microsoft 149 Jan 06, 2023
    DirectML is a high-performance, hardware-accelerated DirectX 12 library for machine learning.

    DirectML is a high-performance, hardware-accelerated DirectX 12 library for machine learning. DirectML provides GPU acceleration for common machine learning tasks across a broad range of supported ha

    Microsoft 1.1k Jan 04, 2023
    Distributed Evolutionary Algorithms in Python

    DEAP DEAP is a novel evolutionary computation framework for rapid prototyping and testing of ideas. It seeks to make algorithms explicit and data stru

    Distributed Evolutionary Algorithms in Python 4.9k Jan 05, 2023
    Toolss - Automatic installer of hacking tools (ONLY FOR TERMUKS!)

    Tools Автоматический установщик хакерских утилит (ТОЛЬКО ДЛЯ ТЕРМУКС!) Оригиналь

    14 Jan 05, 2023
    Applied Machine Learning for Graduate Program in Computer Science (PPGCC)

    Applied Machine Learning for Graduate Program in Computer Science (PPGCC) - Federal University of Santa Catarina

    Jônatas Negri Grandini 1 Dec 22, 2021
    Napari sklearn decomposition

    napari-sklearn-decomposition A simple plugin to use with napari This napari plug

    1 Sep 01, 2022