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
    Machine learning template for projects based on sklearn library.

    Machine learning template for projects based on sklearn library.

    Janez Lapajne 17 Oct 28, 2022
    Credit Card Fraud Detection, used the credit card fraud dataset from Kaggle

    Credit Card Fraud Detection, used the credit card fraud dataset from Kaggle

    Sean Zahller 1 Feb 04, 2022
    ETNA is an easy-to-use time series forecasting framework.

    ETNA is an easy-to-use time series forecasting framework. It includes built in toolkits for time series preprocessing, feature generation, a variety of predictive models with unified interface - from

    Tinkoff.AI 674 Jan 07, 2023
    A collection of interactive machine-learning experiments: 🏋️models training + 🎨models demo

    🤖 Interactive Machine Learning experiments: 🏋️models training + 🎨models demo

    Oleksii Trekhleb 1.4k Jan 06, 2023
    Practical Time-Series Analysis, published by Packt

    Practical Time-Series Analysis This is the code repository for Practical Time-Series Analysis, published by Packt. It contains all the supporting proj

    Packt 325 Dec 23, 2022
    DirectML is a high-performance, hardware-accelerated DirectX 12 library for machine learning.

    DirectML is a high-performance, hardware-accelerated DirectX 12 library for machine learning. DirectML provides GPU acceleration for common machine learning tasks across a broad range of supported ha

    Microsoft 1.1k Jan 04, 2023
    An open-source library of algorithms to analyse time series in GPU and CPU.

    An open-source library of algorithms to analyse time series in GPU and CPU.

    Shapelets 216 Dec 30, 2022
    Combines Bayesian analyses from many datasets.

    PosteriorStacker Combines Bayesian analyses from many datasets. Introduction Method Tutorial Output plot and files Introduction Fitting a model to a d

    Johannes Buchner 19 Feb 13, 2022
    A demo project to elaborate how Machine Learn Models are deployed on production using Flask API

    This is a salary prediction website developed with the help of machine learning, this makes prediction of salary on basis of few parameters like interview score, experience test score.

    1 Feb 10, 2022
    ArviZ is a Python package for exploratory analysis of Bayesian models

    ArviZ (pronounced "AR-vees") is a Python package for exploratory analysis of Bayesian models. Includes functions for posterior analysis, data storage, model checking, comparison and diagnostics

    ArviZ 1.3k Jan 05, 2023
    Distributed deep learning on Hadoop and Spark clusters.

    Note: we're lovingly marking this project as Archived since we're no longer supporting it. You are welcome to read the code and fork your own version

    Yahoo 1.3k Dec 28, 2022
    决策树分类与回归模型的实现和可视化

    DecisionTree 决策树分类与回归模型,以及可视化 DecisionTree ID3 C4.5 CART 分类 回归 决策树绘制 分类树 回归树 调参 剪枝 ID3 ID3决策树是最朴素的决策树分类器: 无剪枝 只支持离散属性 采用信息增益准则 在data.py中,我们记录了一个小的西瓜数据

    Welt Xing 10 Oct 22, 2022
    LibTraffic is a unified, flexible and comprehensive traffic prediction library based on PyTorch

    LibTraffic is a unified, flexible and comprehensive traffic prediction library, which provides researchers with a credibly experimental tool and a convenient development framework. Our library is imp

    432 Jan 05, 2023
    Sequence learning toolkit for Python

    seqlearn seqlearn is a sequence classification toolkit for Python. It is designed to extend scikit-learn and offer as similar as possible an API. Comp

    Lars 653 Dec 27, 2022
    GAM timeseries modeling with auto-changepoint detection. Inspired by Facebook Prophet and implemented in PyMC3

    pm-prophet Pymc3-based universal time series prediction and decomposition library (inspired by Facebook Prophet). However, while Faceook prophet is a

    Luca Giacomel 314 Dec 25, 2022
    This is a Cricket Score Predictor that predicts the first innings score of a T20 Cricket match using Machine Learning

    This is a Cricket Score Predictor that predicts the first innings score of a T20 Cricket match using Machine Learning. It is a Web Application.

    Developer Junaid 3 Aug 04, 2022
    Pydantic based mock data generation

    This library offers powerful mock data generation capabilities for pydantic based models. It can also be used with other libraries that use pydantic as a foundation, for example SQLModel, Beanie and

    Na'aman Hirschfeld 396 Dec 28, 2022
    monolish: MONOlithic Liner equation Solvers for Highly-parallel architecture

    monolish is a linear equation solver library that monolithically fuses variable data type, matrix structures, matrix data format, vendor specific data transfer APIs, and vendor specific numerical alg

    RICOS Co. Ltd. 179 Dec 21, 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
    pandas, scikit-learn, xgboost and seaborn integration

    pandas, scikit-learn and xgboost integration.

    299 Dec 30, 2022