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
    Relevance Vector Machine implementation using the scikit-learn API.

    scikit-rvm scikit-rvm is a Python module implementing the Relevance Vector Machine (RVM) machine learning technique using the scikit-learn API. Quicks

    James Ritchie 204 Nov 18, 2022
    CrayLabs and user contibuted examples of using SmartSim for various simulation and machine learning applications.

    SmartSim Example Zoo This repository contains CrayLabs and user contibuted examples of using SmartSim for various simulation and machine learning appl

    Cray Labs 14 Mar 30, 2022
    Bayesian optimization in JAX

    Bayesian optimization in JAX

    Predictive Intelligence Lab 26 May 11, 2022
    Lightning ⚡️ fast forecasting with statistical and econometric models.

    Nixtla Statistical ⚡️ Forecast Lightning fast forecasting with statistical and econometric models StatsForecast offers a collection of widely used uni

    Nixtla 2.1k Dec 29, 2022
    JMP is a Mixed Precision library for JAX.

    Mixed precision training [0] is a technique that mixes the use of full and half precision floating point numbers during training to reduce the memory bandwidth requirements and improve the computatio

    DeepMind 108 Dec 31, 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
    Decision Weights in Prospect Theory

    Decision Weights in Prospect Theory It's clear that humans are irrational, but how irrational are they? After some research into behavourial economics

    Cameron Davidson-Pilon 32 Nov 08, 2021
    Toolss - Automatic installer of hacking tools (ONLY FOR TERMUKS!)

    Tools Автоматический установщик хакерских утилит (ТОЛЬКО ДЛЯ ТЕРМУКС!) Оригиналь

    14 Jan 05, 2023
    Simple, fast, and parallelized symbolic regression in Python/Julia via regularized evolution and simulated annealing

    Parallelized symbolic regression built on Julia, and interfaced by Python. Uses regularized evolution, simulated annealing, and gradient-free optimization.

    Miles Cranmer 924 Jan 03, 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
    Distributed training framework for TensorFlow, Keras, PyTorch, and Apache MXNet.

    Horovod Horovod is a distributed deep learning training framework for TensorFlow, Keras, PyTorch, and Apache MXNet. The goal of Horovod is to make dis

    Horovod 12.9k Jan 07, 2023
    This repo includes some graph-based CTR prediction models and other representative baselines.

    Graph-based CTR prediction This is a repository designed for graph-based CTR prediction methods, it includes our graph-based CTR prediction methods: F

    Big Data and Multi-modal Computing Group, CRIPAC 47 Dec 30, 2022
    Python Automated Machine Learning library for tabular data.

    Simple but powerful Automated Machine Learning library for tabular data. It uses efficient in-memory SAP HANA algorithms to automate routine Data Scie

    Daniel Khromov 47 Dec 17, 2022
    inding a method to objectively quantify skill versus chance in games, using reinforcement learning

    Skill-vs-chance-games-analysis - Finding a method to objectively quantify skill versus chance in games, using reinforcement learning

    Marcus Chiam 4 Nov 19, 2022
    Python package for concise, transparent, and accurate predictive modeling

    Python package for concise, transparent, and accurate predictive modeling. All sklearn-compatible and easy to use. 📚 docs • 📖 demo notebooks Modern

    Chandan Singh 983 Jan 01, 2023
    Reggy - Regressions with arbitrarily complex regularization terms

    reggy Regressions with arbitrarily complex regularization terms. Currently suppo

    Kim 1 Jan 20, 2022
    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
    This jupyter notebook project was completed by me and my friend using the dataset from Kaggle

    ARM This jupyter notebook project was completed by me and my friend using the dataset from Kaggle. The world Happiness 2017, which ranks 155 countries

    1 Jan 23, 2022
    ETNA – time series forecasting framework

    ETNA Time Series Library Predict your time series the easiest way Homepage | Documentation | Tutorials | Contribution Guide | Release Notes ETNA is an

    Tinkoff.AI 675 Jan 08, 2023
    LightGBM + Optuna: no brainer

    AutoLGBM LightGBM + Optuna: no brainer auto train lightgbm directly from CSV files auto tune lightgbm using optuna auto serve best lightgbm model usin

    Rishiraj Acharya 22 Dec 15, 2022