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
    SPCL 48 Dec 12, 2022
    A handy tool for common machine learning models' hyper-parameter tuning.

    Common machine learning models' hyperparameter tuning This repo is for a collection of hyper-parameter tuning for "common" machine learning models, in

    Kevin Hu 2 Jan 27, 2022
    Python package for machine learning for healthcare using a OMOP common data model

    This library was developed in order to facilitate rapid prototyping in Python of predictive machine-learning models using longitudinal medical data from an OMOP CDM-standard database.

    Sontag Lab 75 Jan 03, 2023
    MBTR is a python package for multivariate boosted tree regressors trained in parameter space.

    MBTR is a python package for multivariate boosted tree regressors trained in parameter space.

    SUPSI-DACD-ISAAC 61 Dec 19, 2022
    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
    李航《统计学习方法》复现

    本项目复现李航《统计学习方法》每一章节的算法 特点: 笔记摘要:在每个文件开头都会有一些核心的摘要 pythonic:这里会用尽可能规范的方式来实现,包括编程风格几乎严格按照PEP8 循序渐进:前期的算法会更list的方式来做计算,可读性比较强,后期几乎完全为numpy.array的计算,并且辅助详

    58 Oct 22, 2021
    Steganography is the art of hiding the fact that communication is taking place, by hiding information in other information.

    Steganography is the art of hiding the fact that communication is taking place, by hiding information in other information.

    Priyansh Sharma 7 Nov 09, 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
    Built on python (Mathematical straight fit line coordinates error predictor machine learning foundational model)

    Sum-Square_Error-Business-Analytical-Tool- Built on python (Mathematical straight fit line coordinates error predictor machine learning foundational m

    om Podey 1 Dec 03, 2021
    A unified framework for machine learning with time series

    Welcome to sktime A unified framework for machine learning with time series We provide specialized time series algorithms and scikit-learn compatible

    The Alan Turing Institute 6k Jan 06, 2023
    An implementation of Relaxed Linear Adversarial Concept Erasure (RLACE)

    Background This repository contains an implementation of Relaxed Linear Adversarial Concept Erasure (RLACE). Given a dataset X of dense representation

    Shauli Ravfogel 4 Apr 13, 2022
    Scikit learn library models to account for data and concept drift.

    liquid_scikit_learn Scikit learn library models to account for data and concept drift. This python library focuses on solving data drift and concept d

    7 Nov 18, 2021
    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

    1 Jan 01, 2022
    AI and Machine Learning with Kubeflow, Amazon EKS, and SageMaker

    Data Science on AWS - O'Reilly Book Get the book on Amazon.com Book Outline Quick Start Workshop (4-hours) In this quick start hands-on workshop, you

    Data Science on AWS 2.8k Jan 03, 2023
    🚪✊Knock Knock: Get notified when your training ends with only two additional lines of code

    Knock Knock A small library to get a notification when your training is complete or when it crashes during the process with two additional lines of co

    Hugging Face 2.5k Jan 07, 2023
    database for artificial intelligence/machine learning data

    AIDB v0.0.1 database for artificial intelligence/machine learning data Overview aidb is a database designed for large dataset for machine learning pro

    Aarush Gupta 1 Oct 24, 2021
    Tools for diffing and merging of Jupyter notebooks.

    nbdime provides tools for diffing and merging of Jupyter Notebooks.

    Project Jupyter 2.3k Jan 03, 2023
    Machine-Learning with python (jupyter)

    Machine-Learning with python (jupyter) 머신러닝 야학 작심 10일과 쥬피터 노트북 기반 데이터 사이언스 시작 들어가기전 https://nbviewer.org/ 페이지를 통해서 쥬피터 노트북 내용을 볼 수 있다. 위 페이지에서 현재 레포 기

    HyeonWoo Jeong 1 Jan 23, 2022
    Interactive Web App with Streamlit and Scikit-learn that applies different Classification algorithms to popular datasets

    Interactive Web App with Streamlit and Scikit-learn that applies different Classification algorithms to popular datasets Datasets Used: Iris dataset,

    Samrat Mitra 2 Nov 18, 2021
    [HELP REQUESTED] Generalized Additive Models in Python

    pyGAM Generalized Additive Models in Python. Documentation Official pyGAM Documentation: Read the Docs Building interpretable models with Generalized

    daniel servén 747 Jan 05, 2023