Giter VIP home page Giter VIP logo

roughsr2's Introduction

roughsr2

This module finds support and resistance levels and is an improved version of the original roughsr.

WARNING

Please be aware that this is a very rough piece of code and I take no responsibility for any financial loss that may incur from it's use.

Improvements on roughsr

Now all you need to do is put your call the function with the single argument of your data as a pandas series object, as opposed to all the frivolous arguments from before. It can also find support and resistance levels for any security, regardless of the price level, and uses a different technique to find those levels than the original model. This new technique has shown to be more accurate.

Prerequisites

numpy and pandas

Installation

Clone or download the ZIP file and unpack. Bring roughsr.py file to the same folder as the project you want to use it in, or put it in your modules folder and make sure that is added to your path. -from roughsr2 import find_support, find_resistance- in your python file

Use

Simply import the module and call find_resistance(data) or find_support(data) with your data as a pandas series object (preferably of between 100 and 500 entries), and it will return a series object of the price levels at which resistance or support levels (respectively) were found.

eg:

crsp_resistance = find_resistance(crsp)

crsp

0 19.325333

1 39.125000

2 49.848571

3 52.002917

4 56.334285

5 65.010000

Name: resistance, dtype: float64

roughsr2's People

Watchers

James Cloos avatar Kevin Zhu 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.