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
    Python package for machine learning for healthcare using a OMOP common data model

    This library was developed in order to facilitate rapid prototyping in Python of predictive machine-learning models using longitudinal medical data from an OMOP CDM-standard database.

    Sontag Lab 75 Jan 03, 2023
    A project based example of Data pipelines, ML workflow management, API endpoints and Monitoring.

    MLOps template with examples for Data pipelines, ML workflow management, API development and Monitoring.

    Utsav 33 Dec 03, 2022
    This project used bitcoin, S&P500, and gold to construct an investment portfolio that aimed to minimize risk by minimizing variance.

    minvar_invest_portfolio This project used bitcoin, S&P500, and gold to construct an investment portfolio that aimed to minimize risk by minimizing var

    1 Jan 06, 2022
    Lseng-iseng eksplor Machine Learning dengan menggunakan library Scikit-Learn

    Kalo dengar istilah ML, biasanya rada ambigu. Soalnya punya beberapa kepanjangan, seperti Mobile Legend, Makan Lontong, Ma**ng L*v* dan lain-lain. Tapi pada repo ini membahas Machine Learning :)

    Alfiyanto Kondolele 1 Apr 06, 2022
    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
    Datetimes for Humans™

    Maya: Datetimes for Humans™ Datetimes are very frustrating to work with in Python, especially when dealing with different locales on different systems

    Timo Furrer 3.4k Dec 28, 2022
    PyNNDescent is a Python nearest neighbor descent for approximate nearest neighbors.

    PyNNDescent PyNNDescent is a Python nearest neighbor descent for approximate nearest neighbors. It provides a python implementation of Nearest Neighbo

    Leland McInnes 699 Jan 09, 2023
    A machine learning toolkit dedicated to time-series data

    tslearn The machine learning toolkit for time series analysis in Python Section Description Installation Installing the dependencies and tslearn Getti

    2.3k Dec 29, 2022
    MICOM is a Python package for metabolic modeling of microbial communities

    Welcome MICOM is a Python package for metabolic modeling of microbial communities currently developed in the Gibbons Lab at the Institute for Systems

    57 Dec 21, 2022
    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
    UpliftML: A Python Package for Scalable Uplift Modeling

    UpliftML is a Python package for scalable unconstrained and constrained uplift modeling from experimental data. To accommodate working with big data, the package uses PySpark and H2O models as base l

    Booking.com 254 Dec 31, 2022
    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
    Nevergrad - A gradient-free optimization platform

    Nevergrad - A gradient-free optimization platform nevergrad is a Python 3.6+ library. It can be installed with: pip install nevergrad More installati

    Meta Research 3.4k Jan 08, 2023
    Continuously evaluated, functional, incremental, time-series forecasting

    timemachines Autonomous, univariate, k-step ahead time-series forecasting functions assigned Elo ratings You can: Use some of the functionality of a s

    Peter Cotton 343 Jan 04, 2023
    using Machine Learning Algorithm to classification AppleStore application

    AppleStore-classification-with-Machine-learning-Algo- using Machine Learning Algorithm to classification AppleStore application. the first step : 1: p

    Mohammed Hussien 2 May 02, 2022
    Learning --> Numpy January 2022 - winter'22

    Numerical-Python Numpy NumPy is a library for the Python programming language, adding support for large, multi-dimensional arrays and matrices, along

    Shahzaneer Ahmed 0 Mar 12, 2022
    Microsoft contributing libraries, tools, recipes, sample codes and workshop contents for machine learning & deep learning.

    Microsoft contributing libraries, tools, recipes, sample codes and workshop contents for machine learning & deep learning.

    Microsoft 366 Jan 03, 2023
    CD) in machine learning projectsImplementing continuous integration & delivery (CI/CD) in machine learning projects

    CML with cloud compute This repository contains a sample project using CML with Terraform (via the cml-runner function) to launch an AWS EC2 instance

    Iterative 19 Oct 03, 2022
    A Python implementation of FastDTW

    fastdtw Python implementation of FastDTW [1], which is an approximate Dynamic Time Warping (DTW) algorithm that provides optimal or near-optimal align

    tanitter 651 Jan 04, 2023
    Price Prediction model is used to develop an LSTM model to predict the future market price of Bitcoin and Ethereum.

    Price Prediction model is used to develop an LSTM model to predict the future market price of Bitcoin and Ethereum.

    2 Jun 14, 2022