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
    YouTube Spam Detection with python

    YouTube Spam Detection This code deletes spam comment on youtube videos based on two characteristics (currently) If the author of the comment has a se

    MohamadReza Taalebi 5 Sep 27, 2022
    The MLOps is the process of continuous integration and continuous delivery of Machine Learning artifacts as a software product, keeping it inside a loop of Design, Model Development and Operations.

    MLOps The MLOps is the process of continuous integration and continuous delivery of Machine Learning artifacts as a software product, keeping it insid

    Maykon Schots 25 Nov 27, 2022
    Python module for performing linear regression for data with measurement errors and intrinsic scatter

    Linear regression for data with measurement errors and intrinsic scatter (BCES) Python module for performing robust linear regression on (X,Y) data po

    Rodrigo Nemmen 56 Sep 27, 2022
    This repository contains the code to predict house price using Linear Regression Method

    House-Price-Prediction-Using-Linear-Regression The dataset I used for this personal project is from Kaggle uploaded by aariyan panchal. Link of Datase

    0 Jan 28, 2022
    Module is created to build a spam filter using Python and the multinomial Naive Bayes algorithm.

    Naive-Bayes Spam Classificator Module is created to build a spam filter using Python and the multinomial Naive Bayes algorithm. Main goal is to code a

    Viktoria Maksymiuk 1 Jun 27, 2022
    A scikit-learn based module for multi-label et. al. classification

    scikit-multilearn scikit-multilearn is a Python module capable of performing multi-label learning tasks. It is built on-top of various scientific Pyth

    802 Jan 01, 2023
    A concept I came up which ditches the idea of "layers" in a neural network.

    Dynet A concept I came up which ditches the idea of "layers" in a neural network. Install Copy Dynet.py to your project. Run the example Install matpl

    Anik Patel 4 Dec 05, 2021
    QuickAI is a Python library that makes it extremely easy to experiment with state-of-the-art Machine Learning models.

    QuickAI is a Python library that makes it extremely easy to experiment with state-of-the-art Machine Learning models.

    152 Jan 02, 2023
    Flightfare-Prediction - It is a Flightfare Prediction Web Application Using Machine learning,Python and flask

    Flight_fare-Prediction It is a Flight_fare Prediction Web Application Using Machine learning,Python and flask Using Machine leaning i have created a F

    1 Dec 06, 2022
    A statistical library designed to fill the void in Python's time series analysis capabilities, including the equivalent of R's auto.arima function.

    pmdarima Pmdarima (originally pyramid-arima, for the anagram of 'py' + 'arima') is a statistical library designed to fill the void in Python's time se

    alkaline-ml 1.3k Dec 22, 2022
    This machine learning model was developed for House Prices

    This machine learning model was developed for House Prices - Advanced Regression Techniques competition in Kaggle by using several machine learning models such as Random Forest, XGBoost and LightGBM.

    serhat_derya 1 Mar 02, 2022
    This is the material used in my free Persian course: Machine Learning with Python

    This is the material used in my free Persian course: Machine Learning with Python

    Yara Mohamadi 4 Aug 07, 2022
    fastFM: A Library for Factorization Machines

    Citing fastFM The library fastFM is an academic project. The time and resources spent developing fastFM are therefore justified by the number of citat

    1k Dec 24, 2022
    Machine Learning University: Accelerated Natural Language Processing Class

    Machine Learning University: Accelerated Natural Language Processing Class This repository contains slides, notebooks and datasets for the Machine Lea

    AWS Samples 2k Jan 01, 2023
    Uber Open Source 1.6k Dec 31, 2022
    Machine-care - A simple python script to take care of simple maintenance tasks

    Machine care An simple python script to take care of simple maintenance tasks fo

    2 Jul 10, 2022
    Predict the income for each percentile of the population (Python) - FRENCH

    05.income-prediction Predict the income for each percentile of the population (Python) - FRENCH Effectuez une prédiction de revenus Prérequis Pour ce

    1 Feb 13, 2022
    The easy way to combine mlflow, hydra and optuna into one machine learning pipeline.

    mlflow_hydra_optuna_the_easy_way The easy way to combine mlflow, hydra and optuna into one machine learning pipeline. Objective TODO Usage 1. build do

    shibuiwilliam 9 Sep 09, 2022
    Primitives for machine learning and data science.

    An Open Source Project from the Data to AI Lab, at MIT MLPrimitives Pipelines and primitives for machine learning and data science. Documentation: htt

    MLBazaar 65 Dec 29, 2022
    A classification model capable of accurately predicting the price of secondhand cars

    The purpose of this project is create a classification model capable of accurately predicting the price of secondhand cars. The data used for model building is open source and has been added to this

    Akarsh Singh 2 Sep 13, 2022