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
    Client - 🔥 A tool for visualizing and tracking your machine learning experiments

    Weights and Biases Use W&B to build better models faster. Track and visualize all the pieces of your machine learning pipeline, from datasets to produ

    Weights & Biases 5.2k Jan 03, 2023
    Given the names and grades for each student in a class N of students, store them in a nested list and print the name(s) of any student(s) having the second lowest grade.

    Hackerank-Nested-List Given the names and grades for each student in a class N of students, store them in a nested list and print the name(s) of any s

    Sangeeth Mathew John 2 Dec 14, 2021
    Mortality risk prediction for COVID-19 patients using XGBoost models

    Mortality risk prediction for COVID-19 patients using XGBoost models Using demographic and lab test data received from the HM Hospitales in Spain, I b

    1 Jan 19, 2022
    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 Python implementation of GRAIL, a generic framework to learn compact time series representations.

    GRAIL A Python implementation of GRAIL, a generic framework to learn compact time series representations. Requirements Python 3.6+ numpy scipy tslearn

    3 Nov 24, 2021
    [HELP REQUESTED] Generalized Additive Models in Python

    pyGAM Generalized Additive Models in Python. Documentation Official pyGAM Documentation: Read the Docs Building interpretable models with Generalized

    daniel servén 747 Jan 05, 2023
    Model search (MS) is a framework that implements AutoML algorithms for model architecture search at scale.

    Model Search Model search (MS) is a framework that implements AutoML algorithms for model architecture search at scale. It aims to help researchers sp

    AriesTriputranto 1 Dec 13, 2021
    Apache Liminal is an end-to-end platform for data engineers & scientists, allowing them to build, train and deploy machine learning models in a robust and agile way

    Apache Liminals goal is to operationalise the machine learning process, allowing data scientists to quickly transition from a successful experiment to an automated pipeline of model training, validat

    The Apache Software Foundation 121 Dec 28, 2022
    Evidently helps analyze machine learning models during validation or production monitoring

    Evidently helps analyze machine learning models during validation or production monitoring. The tool generates interactive visual reports and JSON profiles from pandas DataFrame or csv files. Current

    Evidently AI 3.1k Jan 07, 2023
    K-Means clusternig example with Python and Scikit-learn

    Unsupervised-Machine-Learning Flat Clustering K-Means clusternig example with Python and Scikit-learn Flat clustering Clustering algorithms group a se

    Emin 1 Dec 13, 2021
    30 Days Of Machine Learning Using Pytorch

    Objective of the repository is to learn and build machine learning models using Pytorch. 30DaysofML Using Pytorch

    Mayur 119 Nov 24, 2022
    Quantum Machine Learning

    The Machine Learning package simply contains sample datasets at present. It has some classification algorithms such as QSVM and VQC (Variational Quantum Classifier), where this data can be used for e

    Qiskit 364 Jan 08, 2023
    Price forecasting of SGB and IRFC Bonds and comparing there returns

    Project_Bonds Project Title : Price forecasting of SGB and IRFC Bonds and comparing there returns. Introduction of the Project The 2008-09 global fina

    Tishya S 1 Oct 28, 2021
    AutoTabular automates machine learning tasks enabling you to easily achieve strong predictive performance in your applications.

    AutoTabular automates machine learning tasks enabling you to easily achieve strong predictive performance in your applications. With just a few lines of code, you can train and deploy high-accuracy m

    Robin 55 Dec 27, 2022
    Python Research Framework

    Python Research Framework

    EleutherAI 106 Dec 13, 2022
    Bayesian optimization in JAX

    Bayesian optimization in JAX

    Predictive Intelligence Lab 26 May 11, 2022
    Napari sklearn decomposition

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

    1 Sep 01, 2022
    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
    Data Efficient Decision Making

    Data Efficient Decision Making

    Microsoft 197 Jan 06, 2023
    Model Agnostic Confidence Estimator (MACEST) - A Python library for calibrating Machine Learning models' confidence scores

    Model Agnostic Confidence Estimator (MACEST) - A Python library for calibrating Machine Learning models' confidence scores

    Oracle 95 Dec 28, 2022