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
    A toolbox to iNNvestigate neural networks' predictions!

    iNNvestigate neural networks! Table of contents Introduction Installation Usage and Examples More documentation Contributing Releases Introduction In

    Maximilian Alber 1.1k Jan 05, 2023
    Class-imbalanced / Long-tailed ensemble learning in Python. Modular, flexible, and extensible

    IMBENS: Class-imbalanced Ensemble Learning in Python Language: English | Chinese/中文 Links: Documentation | Gallery | PyPI | Changelog | Source | Downl

    Zhining Liu 176 Jan 04, 2023
    This repository has datasets containing information of Uber pickups in NYC from April 2014 to September 2014 and January to June 2015. data Analysis , virtualization and some insights are gathered here

    uber-pickups-analysis Data Source: https://www.kaggle.com/fivethirtyeight/uber-pickups-in-new-york-city Information about data set The dataset contain

    B DEVA DEEKSHITH 1 Nov 03, 2021
    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
    The Simpsons and Machine Learning: What makes an Episode Great?

    The Simpsons and Machine Learning: What makes an Episode Great? Check out my Medium article on this! PROBLEM: The Simpsons has had a decline in qualit

    1 Nov 02, 2021
    Client - 🔥 A tool for visualizing and tracking your machine learning experiments

    Weights and Biases Use W&B to build better models faster. Track and visualize all the pieces of your machine learning pipeline, from datasets to produ

    Weights & Biases 5.2k Jan 03, 2023
    A collection of machine learning examples and tutorials.

    machine_learning_examples A collection of machine learning examples and tutorials.

    LazyProgrammer.me 7.1k Jan 01, 2023
    Add built-in support for quaternions to numpy

    Quaternions in numpy This Python module adds a quaternion dtype to NumPy. The code was originally based on code by Martin Ling (which he wrote with he

    Mike Boyle 531 Dec 28, 2022
    Pandas DataFrames and Series as Interactive Tables in Jupyter

    Pandas DataFrames and Series as Interactive Tables in Jupyter Star Turn pandas DataFrames and Series into interactive datatables in both your notebook

    Marc Wouts 364 Jan 04, 2023
    Turning images into '9-pan' palettes using KMeans clustering from sklearn.

    img2palette Turning images into '9-pan' palettes using KMeans clustering from sklearn. Requirements We require: Pillow, for opening and processing ima

    Samuel Vidovich 2 Jan 01, 2022
    Bodywork deploys machine learning projects developed in Python, to Kubernetes.

    Bodywork deploys machine learning projects developed in Python, to Kubernetes. It helps you to: serve models as microservices execute batch jobs run r

    Bodywork Machine Learning 409 Jan 01, 2023
    Learn how to responsibly deliver value with ML.

    Made With ML Applied ML · MLOps · Production Join 30K+ developers in learning how to responsibly deliver value with ML. 🔥 Among the top MLOps reposit

    Goku Mohandas 32k Dec 30, 2022
    Kubeflow is a machine learning (ML) toolkit that is dedicated to making deployments of ML workflows on Kubernetes simple, portable, and scalable.

    SDK: Overview of the Kubeflow pipelines service Kubeflow is a machine learning (ML) toolkit that is dedicated to making deployments of ML workflows on

    Kubeflow 3.1k Jan 06, 2023
    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
    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
    Python Machine Learning Jupyter Notebooks (ML website)

    Python Machine Learning Jupyter Notebooks (ML website) Dr. Tirthajyoti Sarkar, Fremont, California (Please feel free to connect on LinkedIn here) Also

    Tirthajyoti Sarkar 2.6k Jan 03, 2023
    Random Forest Classification for Neural Subtypes

    Random Forest classifier for neural subtypes extracted from extracellular recordings from human brain organoids.

    Michael Zabolocki 1 Jan 31, 2022
    Penguins species predictor app is used to classify penguins species created using python's scikit-learn, fastapi, numpy and joblib packages.

    Penguins Classification App Penguins species predictor app is used to classify penguins species using their island, sex, bill length (mm), bill depth

    Siva Prakash 3 Apr 05, 2022
    A collection of Scikit-Learn compatible time series transformers and tools.

    tsfeast A collection of Scikit-Learn compatible time series transformers and tools. Installation Create a virtual environment and install: From PyPi p

    Chris Santiago 0 Mar 30, 2022
    Sleep stages are classified with the help of ML. We have used 4 different ML algorithms (SVM, KNN, RF, NN) to demonstrate them

    Sleep stages are classified with the help of ML. We have used 4 different ML algorithms (SVM, KNN, RF, NN) to demonstrate them.

    Anirudh Edpuganti 3 Apr 03, 2022