-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SMA producing NaNs #601
Comments
Intended behavior that’s how the underlying library works. Maybe not desired but many libraries like pandas provide a fillna() method that you can determine how to deal with NaNs in your data set. On Jun 27, 2023, at 2:37 PM, Jark ***@***.***> wrote:
Hello, it appears that with SMA, even if only a few input values are NaNs, ta-libs entire output comes out as NaN. I don't believe this is intended behavior, because even where there is a valid series of values where the SMA can be calculated, NaN values are being returned.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Is it possible to have TA-Lib just ignore NaNs in calculations? For example, if a period was |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, it appears that with SMA, even if only a few input values are NaNs, ta-libs entire output comes out as NaN. I don't believe this is intended behavior, because even where there is a valid series of values where the SMA can be calculated, NaN values are being returned.
The text was updated successfully, but these errors were encountered: