Skip to content

Value ranges for functions #126

Open

Description

@dawhitefish

Is there a way to find out the min and max values for each of the functions?

Activity

  1. mrjbq7 commented on Nov 2, 2016

    @mrjbq7
    Member

    Hmm, I assume you mean programmatically, and I'm not sure if that's available. Would have to look through some of the Abstract API features in the underlying C library.

  2. dawhitefish commented on Nov 2, 2016

    @dawhitefish
    Author

    Yes, I just wanted to see if it was possible programmatically. If its not I guess I will just have to find the values myself. Thank you for the quick response

  3. mrjbq7 commented on Nov 2, 2016

    @mrjbq7
    Member

    You might look through the output_flags of the Abstract API:

    >>> import talib.abstract
    >>> talib.abstract.MOM.info
    {'display_name': 'Momentum',
     'function_flags': None,
     'group': 'Momentum Indicators',
     'input_names': OrderedDict([('price', 'close')]),
     'name': 'MOM',
     'output_flags': OrderedDict([('real', ['Line'])]),
     'output_names': ['real'],
     'parameters': OrderedDict([('timeperiod', 10)])}
    >>> talib.abstract.MOM.output_flags

    The output_flags is an enum with these possibilities:

    https://github.com/mrjbq7/ta-lib/blob/master/talib/abstract.pyx#L496

  4. mario4tier commented on Oct 23, 2026

    @mario4tier
    Member

    Sadly, no: TA-Lib C has no min/max for continuous outputs such as RSI. Bounded indicators give their range on their ta-lib.org page, e.g. RSI (0 to 100) and WILLR (-100 to 0).

    Pattern outputs (CDL*) do declare their exact values in output_flags: 0, or a sign times 100, plus 80 with "Weak Pattern" and 200 with "Confirmation Pattern" (see the output flags). #778 corrects those descriptions; it takes effect with the next TA-Lib C release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions