Git Product home page Git Product logo

taex's Introduction

jhartwell's github stats

taex's People

Contributors

jfalk avatar jhartwell avatar

Stargazers

 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  avatar

taex's Issues

my RSI calculation is off

thanks for this library,
I'm playing around with the RSI calculation but I cannot match what I see on the charts.

I'm fetching realtime candles from https://www.binance.com/en/futures/BNB_USDT (1m resolution tradingview chart with RSI chart enabled)
I have a snapshot list of the latest 14 closing prices with 1m resolution, from the oldest to the newest:

prices = [470.301, 470.888, 471.162, 471.063, 471.534, 471.608, 472.146, 471.579, 471.847, 472.3, 472.283, 473.083, 472.582, 472.962]

for example on tradingview I see that the last closed candle's RSI is 59.0363, but using these prices on the library nets 76.45655199840895, which is off.

I'm using candles closing prices.

I must be missing something, am I using this improperly? any tips how to match the value I see on the exchange?
should I feed the function more prices? if so, how many for a 14 period?

  assert Enum.count(prices) == 14
  assert RSI.calculateRSI(prices) == 59.0363
     Assertion with == failed
     code:  assert RSI.calculateRSI(prices) == 59.0363
     left:  76.45655199840895
     right: 59.0363

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.