Giter Site home page Giter Site logo

naharul98 / digital-signal-processing-in-trading Goto Github PK

View Code? Open in Web Editor NEW
12.0 1.0 7.0 1.54 MB

Using Discrete Fourier transform to transform and eliminate noise in asset price time series and identify repeating patterns to exploit and backtest.

Home Page: https://nbviewer.jupyter.org/github/Naharul98/Digital-Signal-Processing-In-Trading/blob/main/Applying-Discrete-Fourier-Transform-In-Trading.ipynb

Jupyter Notebook 100.00%
discrete-fourier-transform time-series time-series-analysis python3 trading-strategies trading-algorithms stock-market

digital-signal-processing-in-trading's Introduction

Digital-Signal-Processing-In-Trading

Transform asset price time series into stationary form apply Discrete Fourier Transform to eliminate noise and identify/model repeating patterns to exploit and backtest.

Inspiration from Research Journals

The project was inspired by the following academic journals:

Journal 1 Journal 2 Journal 3

Project Demo

Screenshots

Example ScreenShot Example ScreenShot2

About the Project

Discrete Fourier Transform

  • This digital signal processing technique is used to de-noise the data. Discrete Fourier Transform Splits time series into a set of waves. These waves can be summed up to construct the original time series again!
  • However, objective is to remove noise from original time series.
  • Therefore, the concept is that, we only select a few set of waves with most amplitude -> and only use these to reconstruct the time series. the resulting time series will only have the most prominent characteristics of the original.

Trading Strategy Overview

  1. Transform original time series to find a repeating pattern/anomaly.
  2. Check for stationarity using Augmented Dickey Fuller test
  3. If not stationary, then detrend the data to remove seasonal factors to make it stationary
  4. Eliminate noise in the pattern to better model it, this is where digital signal processing come in
  5. Apply Discrete Fourier Transform to split the time series into different wave functions
  6. Only take the most prevalent wave functions and rebuild the time series. This would theoretically remove noise within the time series.
  7. Try to take advantage of this repeating pattern in the market
  8. Incorporate risk management measures in the strategy

digital-signal-processing-in-trading's People

Contributors

naharul98 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.