Skip to content

abstract: name an input's price series by the TA_IN_PRICE_* bits only - #800

Merged
mario4tier merged 2 commits into
devfrom
input-price-bits
Dec 4, 2026
Merged

mario4tier merged 2 commits into
devfrom
input-price-bits

Conversation

@mario4tier

Copy link
Copy Markdown
Member

TA-Lib C dev (the coming 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 [] instead of None, never took its default series, and an abstract call such as SMA(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.

mrjbq7 and others added 2 commits December 3, 2026 23:10
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".
@mario4tier
mario4tier merged commit 7031080 into dev Dec 4, 2026
7 checks passed
@mario4tier

Copy link
Copy Markdown
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 abstract.SMA(close) with "Too many price arguments". This PR is the fix, so it is worth having in a wrapper release soon after. PyPI wheels are not affected: they bundle C 0.8.3.

@mario4tier mario4tier mentioned this pull request Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants