Repository navigation
abstract: name an input's price series by the TA_IN_PRICE_* bits only - #800
Merged
Merged
Conversation
TA-Lib C 0.8.4 adds the sign flags TA_IN_POSITIVE, TA_IN_NEGATIVE and TA_IN_ZERO (0x100, 0x200, 0x400) to an input's flags word. A real input then decoded to an empty list of price series instead of None, so it never took its default series and an abstract call such as SMA(close) failed with "Too many price arguments: expected 0".
Member
Author
|
@mrjbq7 a heads-up on why this one matters: once TA-Lib C 0.8.4 is out, ta-lib-python 0.8.3 running on a shared C 0.8.4 library (a source build against a system TA-Lib, probably conda too) fails abstract calls such as |
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TA-Lib C dev (the coming 0.8.4) adds the sign flags
TA_IN_POSITIVE,TA_IN_NEGATIVEandTA_IN_ZERO(0x100, 0x200, 0x400) to an input's flags word. A real input then decoded to[]instead ofNone, never took its default series, and an abstract call such asSMA(close)failed with "Too many price arguments: expected 0".The price series is now read from the
TA_IN_PRICE_*bits only. Against C dev the suite goes from 647 failed to 2038 passed; results against C 0.8.3 are unchanged.The first commit brings master's Python 3.15 classifier to dev.