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
    🎛 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
    Greykite: A flexible, intuitive and fast forecasting library

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

    LinkedIn 1.7k Jan 04, 2023
    Cohort Intelligence used to solve various mathematical functions

    Cohort-Intelligence-for-Mathematical-Functions About Cohort Intelligence : Cohort Intelligence ( CI ) is an optimization technique. It attempts to mod

    Aayush Khandekar 2 Oct 25, 2021
    Diabetes Prediction with Logistic Regression

    Diabetes Prediction with Logistic Regression Exploratory Data Analysis Data Preprocessing Model & Prediction Model Evaluation Model Validation: Holdou

    AZİZE SULTAN PALALI 2 Oct 23, 2021
    SmartSim makes it easier to use common Machine Learning (ML) libraries like PyTorch and TensorFlow

    SmartSim makes it easier to use common Machine Learning (ML) libraries like PyTorch and TensorFlow, in High Performance Computing (HPC) simulations and workloads.

    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
    scikit-fem is a lightweight Python 3.7+ library for performing finite element assembly.

    scikit-fem is a lightweight Python 3.7+ library for performing finite element assembly. Its main purpose is the transformation of bilinear forms into sparse matrices and linear forms into vectors.

    Tom Gustafsson 297 Dec 13, 2022
    A naive Bayes model for cancer classification using a set of documents

    Naivebayes text classifcation model for cancer and noncancer documents Author: Alex King Purpose Requirements/files included How to use 1. Purpose The

    Alex W King 1 Nov 24, 2021
    EbookMLCB - ebook Machine Learning cơ bản

    Mã nguồn cuốn ebook "Machine Learning cơ bản", Vũ Hữu Tiệp. ebook Machine Learning cơ bản pdf-black_white, pdf-color. Mọi hình thức sao chép, in ấn đề

    943 Jan 02, 2023
    ClearML - Auto-Magical Suite of tools to streamline your ML workflow. Experiment Manager, MLOps and Data-Management

    ClearML - Auto-Magical Suite of tools to streamline your ML workflow Experiment Manager, MLOps and Data-Management ClearML Formerly known as Allegro T

    ClearML 4k Jan 09, 2023
    Tutorials, examples, collections, and everything else that falls into the categories: pattern classification, machine learning, and data mining

    **Tutorials, examples, collections, and everything else that falls into the categories: pattern classification, machine learning, and data mining.** S

    Sebastian Raschka 4k Dec 30, 2022
    ParaMonte is a serial/parallel library of Monte Carlo routines for sampling mathematical objective functions of arbitrary-dimensions

    ParaMonte is a serial/parallel library of Monte Carlo routines for sampling mathematical objective functions of arbitrary-dimensions, in particular, the posterior distributions of Bayesian models in

    Computational Data Science Lab 182 Dec 31, 2022
    Machine Learning for Time-Series with Python.Published by Packt

    Machine-Learning-for-Time-Series-with-Python Become proficient in deriving insights from time-series data and analyzing a model’s performance Links Am

    Packt 124 Dec 28, 2022
    Reggy - Regressions with arbitrarily complex regularization terms

    reggy Regressions with arbitrarily complex regularization terms. Currently suppo

    Kim 1 Jan 20, 2022
    My capstone project for Udacity's Machine Learning Nanodegree

    MLND-Capstone My capstone project for Udacity's Machine Learning Nanodegree Lane Detection with Deep Learning In this project, I use a deep learning-b

    Michael Virgo 407 Dec 12, 2022
    Provide an input CSV and a target field to predict, generate a model + code to run it.

    automl-gs Give an input CSV file and a target field you want to predict to automl-gs, and get a trained high-performing machine learning or deep learn

    Max Woolf 1.8k Jan 04, 2023
    Exemplary lightweight and ready-to-deploy machine learning project

    Exemplary lightweight and ready-to-deploy machine learning project

    snapADDY GmbH 6 Dec 20, 2022
    A high performance and generic framework for distributed DNN training

    BytePS BytePS is a high performance and general distributed training framework. It supports TensorFlow, Keras, PyTorch, and MXNet, and can run on eith

    Bytedance Inc. 3.3k Dec 28, 2022
    Backtesting an algorithmic trading strategy using Machine Learning and Sentiment Analysis.

    Trading Tesla with Machine Learning and Sentiment Analysis An interactive program to train a Random Forest Classifier to predict Tesla daily prices us

    Renato Votto 31 Nov 17, 2022
    Painless Machine Learning for python based on scikit-learn

    PlainML Painless Machine Learning Library for python based on scikit-learn. Install pip install plainml Example from plainml import KnnModel, load_ir

    1 Aug 06, 2022