python-tradingview-ta icon indicating copy to clipboard operation
python-tradingview-ta copied to clipboard

Description of indicators

Open mikolandon opened this issue 3 years ago • 1 comments

First, thanks so much for the awesome package. Is there a place where we can see a description for each of the indicators being fetched?

mikolandon avatar May 03 '22 15:05 mikolandon

Hi, i wanna know how is calculated CCI201 in:

def CCI20(cci20, cci201):
    """Compute Commodity Channel Index 20
    Args:
        cci20 (float): CCI20 value
        cci201 ([type]): CCI20[1] value
    Returns:
        string: "BUY", "SELL", or "NEUTRAL"
    """
    if (cci20 < -100 and cci20 > cci201):
        return Recommendation.buy
    elif (cci20 > 100 and cci20 < cci201):
        return Recommendation.sell
    else:
        return Recommendation.neutral

joankenobi avatar May 27 '22 12:05 joankenobi