GithubHelp home page GithubHelp logo

an0n1mity / rrgpy Goto Github PK

View Code? Open in Web Editor NEW
43.0 4.0 26.0 1.25 MB

RRGPy is a Python script for displaying Relative Rotation Graph.

Python 100.00%
data-visualization technical-analysis technical-indicators finance matplotlib python

rrgpy's Introduction

RRGPy ๐Ÿ“Š

This script generates a scatter plot of the JdK RS Ratio vs JdK RS Momentum, known as Relative Rotation Graph, for a set of tickers and displays their current status based on their position in the plot. The RRG (Relative Rotation Graph) Indicator is a visual tool used in technical analysis to identify and compare the relative strength of different assets in a market.

Requirements

This script requires the following libraries: tkinter pandas numpy yfinance matplotlib scipy

You can install them using pip

pip install pandas numpy yfinance matplotlib scipy

Usage

Clone this repository:

git clone https://github.com/An0n1mity/RRGPy

Open the rrg_indicator.py file and modify the following variables to suit your needs:

  • period: the period of historical prices to retrieve (e.g., '1y', '3mo', '5d')
  • tickers: a list of ticker symbols for the assets you want to analyze
  • tail: the number of historical data points to display as markers (default is 5)
  • tickers_to_show: a list of ticker symbols to show in the scatter plot (default is all tickers)
  • benchmark: the benchmark asset to use for comparison (default is '^STOXX')
  • window: the window size for rolling calculations (default is 14)

Run the script:

python rrg_indicator.py

The script will generate a scatter plot with the JdK RS Ratio on the x-axis and JdK RS Momentum on the y-axis, as well as a table with the current status of each ticker based on their position in the plot. You can change the ticker by clicking on it in the table.

Ressources

rrgpy's People

Contributors

an0n1mity avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

rrgpy's Issues

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.