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
    nn-Meter is a novel and efficient system to accurately predict the inference latency of DNN models on diverse edge devices

    A DNN inference latency prediction toolkit for accurately modeling and predicting the latency on diverse edge devices.

    Microsoft 241 Dec 26, 2022
    AutoTabular automates machine learning tasks enabling you to easily achieve strong predictive performance in your applications.

    AutoTabular AutoTabular automates machine learning tasks enabling you to easily achieve strong predictive performance in your applications. With just

    wenqi 2 Jun 26, 2022
    A Python Package to Tackle the Curse of Imbalanced Datasets in Machine Learning

    imbalanced-learn imbalanced-learn is a python package offering a number of re-sampling techniques commonly used in datasets showing strong between-cla

    6.2k Jan 01, 2023
    Pyomo is an object-oriented algebraic modeling language in Python for structured optimization problems.

    Pyomo is a Python-based open-source software package that supports a diverse set of optimization capabilities for formulating and analyzing optimization models. Pyomo can be used to define symbolic p

    Pyomo 1.4k Dec 28, 2022
    Microsoft 5.6k Jan 07, 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
    PySurvival is an open source python package for Survival Analysis modeling

    PySurvival What is Pysurvival ? PySurvival is an open source python package for Survival Analysis modeling - the modeling concept used to analyze or p

    Square 265 Dec 27, 2022
    A quick reference guide to the most commonly used patterns and functions in PySpark SQL

    Using PySpark we can process data from Hadoop HDFS, AWS S3, and many file systems. PySpark also is used to process real-time data using Streaming and

    Sundar Ramamurthy 53 Dec 21, 2022
    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
    Implementation of different ML Algorithms from scratch, written in Python 3.x

    Implementation of different ML Algorithms from scratch, written in Python 3.x

    Gautam J 393 Nov 29, 2022
    MLBox is a powerful Automated Machine Learning python library.

    MLBox is a powerful Automated Machine Learning python library. It provides the following features: Fast reading and distributed data preprocessing/cle

    Axel 1.4k Jan 06, 2023
    MiniTorch - a diy teaching library for machine learning engineers

    This repo is the full student code for minitorch. It is designed as a single repo that can be completed part by part following the guide book. It uses

    1.1k Jan 07, 2023
    Markov bot - A Writing bot based on Markov Chain for Data Structure Lab

    基于马尔可夫链的写作机器人 前端 用html/css完成 Demo展示(已给出文本的相应展示) 用户提供相关的语料库后训练的成果 后端 要完成的几个接口 解析文

    DysprosiumDy 9 May 05, 2022
    This is a curated list of medical data for machine learning

    Medical Data for Machine Learning This is a curated list of medical data for machine learning. This list is provided for informational purposes only,

    Andrew L. Beam 5.4k Dec 26, 2022
    PROTEIN EXPRESSION ANALYSIS FOR DOWN SYNDROME

    PROTEIN-EXPRESSION-ANALYSIS-FOR-DOWN-SYNDROME Down syndrome (DS) is a chromosomal disorder where organisms have an extra chromosome 21, sometimes know

    1 Jan 20, 2022
    LinearRegression2 Tvads and CarSales

    LinearRegression2_Tvads_and_CarSales This project infers the insight that how the TV ads for cars and car Sales are being linked with each other. It i

    Ashish Kumar Yadav 1 Dec 29, 2021
    Reggy - Regressions with arbitrarily complex regularization terms

    reggy Regressions with arbitrarily complex regularization terms. Currently suppo

    Kim 1 Jan 20, 2022
    A Microsoft Azure Web App project named Covid 19 Predictor using Machine learning Model

    A Microsoft Azure Web App project named Covid 19 Predictor using Machine learning Model (Random Forest Classifier Model ) that helps the user to identify whether someone is showing positive Covid sym

    Priyansh Sharma 2 Oct 06, 2022
    Simple, light-weight config handling through python data classes with to/from JSON serialization/deserialization.

    Simple but maybe too simple config management through python data classes. We use it for machine learning.

    Eren Gölge 67 Nov 29, 2022
    Uplift modeling and causal inference with machine learning algorithms

    Disclaimer This project is stable and being incubated for long-term support. It may contain new experimental code, for which APIs are subject to chang

    Uber Open Source 3.7k Jan 07, 2023