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
    Apache Liminal is an end-to-end platform for data engineers & scientists, allowing them to build, train and deploy machine learning models in a robust and agile way

    Apache Liminals goal is to operationalise the machine learning process, allowing data scientists to quickly transition from a successful experiment to an automated pipeline of model training, validat

    The Apache Software Foundation 121 Dec 28, 2022
    Time-series momentum for momentum investing strategy

    Time-series-momentum Time-series momentum strategy. You can use the data_analysis.py file to find out the best trigger and window for a given asset an

    Victor Caldeira 3 Jun 18, 2022
    Predicting job salaries from ads - a Kaggle competition

    Predicting job salaries from ads - a Kaggle competition

    Zygmunt Zając 57 Oct 23, 2020
    A repository to index and organize the latest machine learning courses found on YouTube.

    📺 ML YouTube Courses At DAIR.AI we ❤️ open education. We are excited to share some of the best and most recent machine learning courses available on

    DAIR.AI 9.6k Jan 01, 2023
    NCVX (NonConVeX): A User-Friendly and Scalable Package for Nonconvex Optimization in Machine Learning.

    NCVX (NonConVeX): A User-Friendly and Scalable Package for Nonconvex Optimization in Machine Learning.

    SUN Group @ UMN 28 Aug 03, 2022
    A Tools that help Data Scientists and ML engineers train and deploy ML models.

    Domino Research This repo contains projects under active development by the Domino R&D team. We build tools that help Data Scientists and ML engineers

    Domino Data Lab 73 Oct 17, 2022
    MIT-Machine Learning with Python–From Linear Models to Deep Learning

    MIT-Machine Learning with Python–From Linear Models to Deep Learning | One of the 5 courses in MIT MicroMasters in Statistics & Data Science Welcome t

    2 Aug 23, 2022
    Crunchdao - Python API for the Crunchdao machine learning tournament

    Python API for the Crunchdao machine learning tournament Interact with the Crunc

    3 Jan 19, 2022
    Python 3.6+ toolbox for submitting jobs to Slurm

    Submit it! What is submitit? Submitit is a lightweight tool for submitting Python functions for computation within a Slurm cluster. It basically wraps

    Facebook Incubator 768 Jan 03, 2023
    Code base of KU AIRS: SPARK Autonomous Vehicle Team

    KU AIRS: SPARK Autonomous Vehicle Project Check this link for the blog post describing this project and the video of SPARK in simulation and on parkou

    Mehmet Enes Erciyes 1 Nov 23, 2021
    Anytime Learning At Macroscale

    On Anytime Learning At Macroscale Learning from sequential data dumps (key) Requirements Python 3.7 Pytorch 1.9.0 Hydra 1.1.0 (pip install hydra-core

    Meta Research 8 Mar 29, 2022
    Vowpal Wabbit is a machine learning system which pushes the frontier of machine learning with techniques

    Vowpal Wabbit is a machine learning system which pushes the frontier of machine learning with techniques such as online, hashing, allreduce, reductions, learning2search, active, and interactive learn

    Vowpal Wabbit 8.1k Dec 30, 2022
    A collection of neat and practical data science and machine learning projects

    Data Science A collection of neat and practical data science and machine learning projects Explore the docs » Report Bug · Request Feature Table of Co

    Will Fong 2 Dec 10, 2021
    scikit-learn: machine learning in Python

    scikit-learn is a Python module for machine learning built on top of SciPy and is distributed under the 3-Clause BSD license. The project was started

    neurodata 3 Dec 16, 2022
    Automated Machine Learning with scikit-learn

    auto-sklearn auto-sklearn is an automated machine learning toolkit and a drop-in replacement for a scikit-learn estimator. Find the documentation here

    AutoML-Freiburg-Hannover 6.7k Jan 07, 2023
    fMRIprep Pipeline To Machine Learning

    fMRIprep Pipeline To Machine Learning(Demo) 所有配置均在config.py文件下定义 前置环境(lilab) 各个节点均安装docker,并有fmripre的镜像 可以使用conda中的base环境(相应的第三份包之后更新) 1. fmriprep scr

    Alien 3 Mar 08, 2022
    machine learning model deployment project of Iris classification model in a minimal UI using flask web framework and deployed it in Azure cloud using Azure app service

    This is a machine learning model deployment project of Iris classification model in a minimal UI using flask web framework and deployed it in Azure cloud using Azure app service. We initially made th

    Krishna Priyatham Potluri 73 Dec 01, 2022
    Python implementation of the rulefit algorithm

    RuleFit Implementation of a rule based prediction algorithm based on the rulefit algorithm from Friedman and Popescu (PDF) The algorithm can be used f

    Christoph Molnar 326 Jan 02, 2023
    A collection of video resources for machine learning

    Machine Learning Videos This is a collection of recorded talks at machine learning conferences, workshops, seminars, summer schools, and miscellaneous

    Dustin Tran 1.5k Dec 29, 2022
    Intel(R) Extension for Scikit-learn is a seamless way to speed up your Scikit-learn application

    Intel(R) Extension for Scikit-learn* Installation | Documentation | Examples | Support | FAQ With Intel(R) Extension for Scikit-learn you can accelera

    Intel Corporation 858 Dec 25, 2022