GithubHelp home page GithubHelp logo

shyrwinsia / forex-pearson Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 6.76 MB

Pearson correlation coefficient visualizer for forex pairs using force-directed graphs

License: MIT License

HTML 3.66% JavaScript 56.60% TypeScript 36.38% SCSS 3.36%
forex forex-trading forex-data pearson-correlation correlation d3v4 d3js d3-visualization

forex-pearson's Introduction

Forex Pearson

Click here for the command-line tool.

This is a force-directed graph visualization of the Pearson Correlation Coefficient (PCC) of the world's top traded currency pairs. This can be used to provide insight on what pairs move the same way (or opposite) and calculate the risk accordingly.

PCC is the covariance of two variables divided by the product of their standard deviations. This was applied on closing price over 50 trading bars of the timeframe. The visualization shows the highly correlated pairs to be nearer each other and with wider links. Green shows positive correlation while red is negative. The threshold was placed at absolute value of 0.80 for PCC. All those below the threshold do not exhibit any linear correlation and thus are not shown.

This retrieves the data from https://www.mataf.net/en/forex/tools/correlation.

Getting Started

Prerequisites

You need to have npm installed. You can download it here.

Installing

To install the dependencies, run this command:

$ yarn

For development, run this command:

$ yarn start

To bundle for production:

$ yarn dist

Todo

  • Add filters in the UI
  • Add 5 min, 1 hr, 4 hr timeframe
  • Add refresh rate with the time frame
  • Create as Electron Standalone
  • Package with Parcel
  • Create installer for Windows and Mac

Disclaimer

The information from this tool is not intended as, and shall not be understood or construed as, financial advice. I am not an attorney or a financial advisor, nor am I holding myself out to be. The information from this tool is not a substitute for financial advice from a professional. Nothing from this tool should be understood as a recommendation that you should not consult a financial professional. It is expressly recommended to seek advice from a professional.

License

MIT

forex-pearson's People

Contributors

dependabot[bot] avatar shyrwinsia avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

afcarl

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.