Open gurachan opened 3 years ago
The data provided by the indicators are correct, I am using them, maybe there is a 1% error but it can ignored.
If you need to calculate RSI(6), which means RSI calculated last 6 candles, the result provided by the function is going to be empty for the first 6 candles, which is natural because function tries to give you results by using them.
https://www.binance.com/tr/trade/COS_USDT?layout=pro
Select the weekly graphic and check the MACD and RSI indicator results, you are going to see that there is no results at the beginning.
so in rsi. if u give it a 500 array it returns 486. but why.. how can I align it per candles..
its has same value as tradingview.. the end of the 486 matches the end of the candle from traiding view..
what happen to other 14 do i just put 0 on it? in the start?.. also some of it is inacurate
..........
also same as macd ... and also its returning inacurate result also
example data
it returns
signal and histogram doesn't even work
expected result .. look it returns full 49 values.. 0-48
I use the code
and format it like this script input
it gives 1:1 value in tradingview macd..
example of last index-2 index-3 index-4
heres the last log of eth this time using script above.. btw ema is from moving-averages npm package
TraidinView Snapshot ..
back to my problem, I don't understand why the output is incomplete and some inaccurate... did I miss something? and some have signal and histogram errors.
all of this have same config