jhartwell / taex Goto Github PK
View Code? Open in Web Editor NEWTechnical Analysis library for Elixir
License: MIT License
Technical Analysis library for Elixir
License: MIT License
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.