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 Lucid Framework for Transparent and Interpretable Machine Learning Models.

    Currently a Beta-Version lucidmode is an open-source, low-code and lightweight Python framework for transparent and interpretable machine learning mod

    lucidmode 15 Aug 12, 2022
    An open source framework that provides a simple, universal API for building distributed applications. Ray is packaged with RLlib, a scalable reinforcement learning library, and Tune, a scalable hyperparameter tuning library.

    Ray provides a simple, universal API for building distributed applications. Ray is packaged with the following libraries for accelerating machine lear

    23.3k Dec 31, 2022
    🎛 Distributed machine learning made simple.

    🎛 lazycluster Distributed machine learning made simple. Use your preferred distributed ML framework like a lazy engineer. Getting Started • Highlight

    Machine Learning Tooling 44 Nov 27, 2022
    Simulate & classify transient absorption spectroscopy (TAS) spectral features for bulk semiconducting materials (Post-DFT)

    PyTASER PyTASER is a Python (3.9+) library and set of command-line tools for classifying spectral features in bulk materials, post-DFT. The goal of th

    Materials Design Group 4 Dec 27, 2022
    The Emergence of Individuality

    The Emergence of Individuality

    16 Jul 20, 2022
    Home repository for the Regularized Greedy Forest (RGF) library. It includes original implementation from the paper and multithreaded one written in C++, along with various language-specific wrappers.

    Regularized Greedy Forest Regularized Greedy Forest (RGF) is a tree ensemble machine learning method described in this paper. RGF can deliver better r

    RGF-team 363 Dec 14, 2022
    Python implementation of the rulefit algorithm

    RuleFit Implementation of a rule based prediction algorithm based on the rulefit algorithm from Friedman and Popescu (PDF) The algorithm can be used f

    Christoph Molnar 326 Jan 02, 2023
    Neighbourhood Retrieval (Nearest Neighbours) with Distance Correlation.

    Neighbourhood Retrieval with Distance Correlation Assign Pseudo class labels to datapoints in the latent space. NNDC is a slim wrapper around FAISS. N

    The Learning Machines 1 Jan 16, 2022
    Case studies with Bayesian methods

    Case studies with Bayesian methods

    Baze Petrushev 8 Nov 26, 2022
    QML: A Python Toolkit for Quantum Machine Learning

    QML is a Python2/3-compatible toolkit for representation learning of properties of molecules and solids.

    176 Dec 09, 2022
    Model factory is a ML training platform to help engineers to build ML models at scale

    Model Factory Machine learning today is powering many businesses today, e.g., search engine, e-commerce, news or feed recommendation. Training high qu

    16 Sep 23, 2022
    DeepSpeed is a deep learning optimization library that makes distributed training easy, efficient, and effective.

    DeepSpeed is a deep learning optimization library that makes distributed training easy, efficient, and effective. 10x Larger Models 10x Faster Trainin

    Microsoft 8.4k Dec 30, 2022
    Open MLOps - A Production-focused Open-Source Machine Learning Framework

    Open MLOps - A Production-focused Open-Source Machine Learning Framework Open MLOps is a set of open-source tools carefully chosen to ease user experi

    Data Revenue 590 Dec 28, 2022
    A complete guide to start and improve in machine learning (ML)

    A complete guide to start and improve in machine learning (ML), artificial intelligence (AI) in 2021 without ANY background in the field and stay up-to-date with the latest news and state-of-the-art

    Louis-François Bouchard 3.3k Jan 04, 2023
    GRaNDPapA: Generator of Rad Names from Decent Paper Acronyms

    Generator of Rad Names from Decent Paper Acronyms

    264 Nov 08, 2022
    A data preprocessing package for time series data. Design for machine learning and deep learning.

    A data preprocessing package for time series data. Design for machine learning and deep learning.

    Allen Chiang 152 Jan 07, 2023
    A game theoretic approach to explain the output of any machine learning model.

    SHAP (SHapley Additive exPlanations) is a game theoretic approach to explain the output of any machine learning model. It connects optimal credit allo

    Scott Lundberg 18.2k Jan 02, 2023
    Predict profitability of trades based on indicator buy / sell signals

    Predict profitability of trades based on indicator buy / sell signals Trade profitability analysis for trades based on various indicators signals: MAC

    Tomasz Porzycki 1 Dec 15, 2021
    Python ML pipeline that showcases mltrace functionality.

    mltrace tutorial Date: October 2021 This tutorial builds a training and testing pipeline for a toy ML prediction problem: to predict whether a passeng

    Log Labs 28 Nov 09, 2022
    A collection of interactive machine-learning experiments: 🏋️models training + 🎨models demo

    🤖 Interactive Machine Learning experiments: 🏋️models training + 🎨models demo

    Oleksii Trekhleb 1.4k Jan 06, 2023