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
    vortex particles for simulating smoke in 2d

    vortex-particles-method-2d vortex particles for simulating smoke in 2d -vortexparticles_s

    12 Aug 23, 2022
    Hierarchical Time Series Forecasting using Prophet

    htsprophet Hierarchical Time Series Forecasting using Prophet Credit to Rob J. Hyndman and research partners as much of the code was developed with th

    Collin Rooney 131 Dec 02, 2022
    Feature-engine is a Python library with multiple transformers to engineer and select features for use in machine learning models.

    Feature-engine is a Python library with multiple transformers to engineer and select features for use in machine learning models. Feature-engine's transformers follow scikit-learn's functionality wit

    Soledad Galli 33 Dec 27, 2022
    An MLOps framework to package, deploy, monitor and manage thousands of production machine learning models

    Seldon Core: Blazing Fast, Industry-Ready ML An open source platform to deploy your machine learning models on Kubernetes at massive scale. Overview S

    Seldon 3.5k Jan 01, 2023
    A Python toolkit for rule-based/unsupervised anomaly detection in time series

    Anomaly Detection Toolkit (ADTK) Anomaly Detection Toolkit (ADTK) is a Python package for unsupervised / rule-based time series anomaly detection. As

    Arundo Analytics 888 Dec 30, 2022
    Apple-voice-recognition - Machine Learning

    Apple-voice-recognition Machine Learning How does Siri work? Siri is based on large-scale Machine Learning systems that employ many aspects of data sc

    Harshith VH 1 Oct 22, 2021
    PyTorch extensions for high performance and large scale training.

    Description FairScale is a PyTorch extension library for high performance and large scale training on one or multiple machines/nodes. This library ext

    Facebook Research 2k Dec 28, 2022
    A machine learning web application for binary classification using streamlit

    Machine Learning web App This is a machine learning web application for binary classification using streamlit options this application contains 3 clas

    abdelhak mokri 1 Dec 20, 2021
    Machine learning template for projects based on sklearn library.

    Machine learning template for projects based on sklearn library.

    Janez Lapajne 17 Oct 28, 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
    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
    Automated machine learning: Review of the state-of-the-art and opportunities for healthcare

    Automated machine learning: Review of the state-of-the-art and opportunities for healthcare

    42 Dec 23, 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
    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
    A Python package to preprocess time series

    Disclaimer: This package is WIP. Do not take any APIs for granted. tspreprocess Time series can contain noise, may be sampled under a non fitting rate

    Maximilian Christ 57 Dec 17, 2022
    Greykite: A flexible, intuitive and fast forecasting library

    The Greykite library provides flexible, intuitive and fast forecasts through its flagship algorithm, Silverkite.

    LinkedIn 1.4k Jan 15, 2022
    Uses WiFi signals :signal_strength: and machine learning to predict where you are

    Uses WiFi signals and machine learning (sklearn's RandomForest) to predict where you are. Even works for small distances like 2-10 meters.

    Pascal van Kooten 5k Jan 09, 2023
    Python based GBDT implementation

    Py-boost: a research tool for exploring GBDTs Modern gradient boosting toolkits are very complex and are written in low-level programming languages. A

    Sberbank AI Lab 20 Sep 21, 2022
    Flask app to predict daily radiation from the time series of Solcast from Islamabad, Pakistan

    Solar-radiation-ISB-MLOps - Flask app to predict daily radiation from the time series of Solcast from Islamabad, Pakistan.

    Abid Ali Awan 1 Dec 31, 2021
    A Python step-by-step primer for Machine Learning and Optimization

    early-ML Presentation General Machine Learning tutorials A Python step-by-step primer for Machine Learning and Optimization This github repository gat

    Dimitri Bettebghor 8 Dec 01, 2022