ta-lib-python
ta-lib-python copied to clipboard
RSI calculation
Hello. During usage RSI function I've touched that with the same timeperiods e.g. 14 RSI still changes depending on data size. for instance if I calculate RSI from 1 Jan 2023 to 01 Aug 2023 or 1 Jan 2022 to 01 Aug 2023 RSI value on 01 Jun 2023 will be different in both cases that makes me crasy. How to reach RSI cosistensy across the time?
Probably has to do with it's definition in TA-Lib, using smoothing:
https://github.com/TA-Lib/ta-lib/blob/main/src/ta_func/ta_RSI.c#L341
@eugenpro how big is the difference for you?