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

    You might also like...
    Flask app to predict daily radiation from the time series of Solcast from Islamabad, Pakistan
    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.

    Houseprices - Predict sales prices and practice feature engineering, RFs, and gradient boosting
    Houseprices - Predict sales prices and practice feature engineering, RFs, and gradient boosting

    House Prices - Advanced Regression Techniques Predicting House Prices with Machine Learning This project is build to enhance my knowledge about machin

    Used Logistic Regression, Random Forest, and XGBoost to predict the outcome of Search & Destroy games from the Call of Duty World League for the 2018 and 2019 seasons.
    Used Logistic Regression, Random Forest, and XGBoost to predict the outcome of Search & Destroy games from the Call of Duty World League for the 2018 and 2019 seasons.

    Call of Duty World League: Search & Destroy Outcome Predictions Growing up as an avid Call of Duty player, I was always curious about what factors led

    A model to predict steering torque fully end-to-end

    torque_model The torque model is a spiritual successor to op-smart-torque, which was a project to train a neural network to control a car's steering f

    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

    Python-based implementations of algorithms for learning on imbalanced data.

    ND DIAL: Imbalanced Algorithms Minimalist Python-based implementations of algorithms for imbalanced learning. Includes deep and representational learn

    A fast, distributed, high performance gradient boosting (GBT, GBDT, GBRT, GBM or MART) framework based on decision tree algorithms, used for ranking, classification and many other machine learning tasks.

    Light Gradient Boosting Machine LightGBM is a gradient boosting framework that uses tree based learning algorithms. It is designed to be distributed a

    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

    jaxfg - Factor graph-based nonlinear optimization library for JAX.

    Factor graphs + nonlinear optimization in JAX

    Owner
    Tomasz Porzycki
    Tomasz Porzycki
    Ml based project which uses regression technique to predict the price.

    Price-Predictor Ml based project which uses regression technique to predict the price. I have used various regression models and finds the model with

    Garvit Verma 1 Jul 9, 2022
    A Python Module That Uses ANN To Predict A Stocks Price And Also Provides Accurate Technical Analysis With Many High Potential Implementations!

    Stox A Module to predict the "close price" for the next day and give "technical analysis". It uses a Neural Network and the LSTM algorithm to predict

    Stox 31 Dec 16, 2022
    Machine Learning Model to predict the payment date of an invoice when it gets created in the system.

    Payment-Date-Prediction Machine Learning Model to predict the payment date of an invoice when it gets created in the system.

    null 15 Sep 9, 2022
    pure-predict: Machine learning prediction in pure Python

    pure-predict speeds up and slims down machine learning prediction applications. It is a foundational tool for serverless inference or small batch prediction with popular machine learning frameworks like scikit-learn and fasttext. It implements the predict methods of these frameworks in pure Python.

    Ibotta 84 Dec 29, 2022
    This machine-learning algorithm takes in data from the last 60 days and tries to predict tomorrow's price of any crypto you ask it.

    Crypto-Currency-Predictor This machine-learning algorithm takes in data from the last 60 days and tries to predict tomorrow's price of any crypto you

    Hazim Arafa 6 Dec 4, 2022
    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
    We have a dataset of user performances. The project is to develop a machine learning model that will predict the salaries of baseball players.

    Salary-Prediction-with-Machine-Learning 1. Business Problem Can a machine learning project be implemented to estimate the salaries of baseball players

    Ayşe Nur Türkaslan 9 Oct 14, 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

    null 0 Jan 28, 2022
    Kaggle Competition using 15 numerical predictors to predict a continuous outcome.

    Kaggle-Comp.-Data-Mining Kaggle Competition using 15 numerical predictors to predict a continuous outcome as part of a final project for a stats data

    moisey alaev 1 Dec 28, 2021
    Avocado hass time series vs predict price

    AVOCADO HASS TIME SERIES VÀ PREDICT PRICE Trước khi vào Heroku muốn giao diện đẹp mọi người chuyển giúp mình theo hình bên dưới https://avocado-hass.h

    hieulmsc 3 Dec 18, 2021