Some RSI calculations are missing on the 1 minute timeframe #43
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
|
Thank you for taking the time to report this issue and for providing such detailed reproduction steps! This is really helpful. After investigation, this is actually expected behavior, not a bug. Here's what's happening: The Cause: Gaps in the DataThe Bitget API doesn't return data for every minute - there are periods with no trading activity. When we downloaded the same data you used, we found:
The gap timestamps (no trading activity from Bitget): How PyneCore Handles This
Why This Is CorrectCalculating RSI (or any indicator) on a "fake" bar with no real price movement would produce misleading results. The 1434 RSI values you're seeing represent all the bars where actual trading occurred. How to VerifyYou can check for gaps in your OHLCV file: from pynecore.core.ohlcv_file import OHLCVReader
with OHLCVReader("your_file.ohlcv") as reader:
gaps = sum(1 for ohlcv in reader if ohlcv.volume < 0)
print(f"Gap bars: {gaps}")Note: We're converting this issue to a Discussion, as we found it valuable for other users who might encounter the same situation. Thanks again for bringing this up! |
Beta Was this translation helpful? Give feedback.









Thank you for taking the time to report this issue and for providing such detailed reproduction steps! This is really helpful.
After investigation, this is actually expected behavior, not a bug. Here's what's happening:
The Cause: Gaps in the Data
The Bitget API doesn't return data for every minute - there are periods with no trading activity. When we downloaded the same data you used, we found:
The gap timestamps (no trading activity from Bitget):
How Pyn…