def Stoch(k, d, k1, d1):
    'Compute Stochastic\n\n        Args:\n            k (float): Stoch.K value\n            d (float): Stoch.D value\n            k1 (float): Stoch.K[1] value\n            d1 (float): Stoch.D[1] value\n\n        Returns:\n            string: "BUY", "SELL", or "NEUTRAL"\n        '
    if ((k < 20) and (d < 20) and (k > d) and (k1 < d1)):
        return Recommendation.buy
    elif ((k > 80) and (d > 80) and (k < d) and (k1 > d1)):
        return Recommendation.sell
    else:
        return Recommendation.neutral
Compute Stochastic

Args:
    k (float): Stoch.K value
    d (float): Stoch.D value
    k1 (float): Stoch.K[1] value
    d1 (float): Stoch.D[1] value

Returns:
    string: "BUY", "SELL", or "NEUTRAL"
def Stoch(k, d, k1, d1):
    'Compute Stochastic\n\n        Args:\n            k (float): Stoch.K value\n            d (float): Stoch.D value\n            k1 (float): Stoch.K[1] value\n            d1 (float): Stoch.D[1] value\n\n        Returns:\n            string: "BUY", "SELL", or "NEUTRAL"\n        '
    if ((k < 20) and (d < 20) and (k > d) and (k1 < d1)):
        return Recommendation.buy
    elif ((k > 80) and (d > 80) and (k < d) and (k1 > d1)):
        return Recommendation.sell
    else:
        return Recommendation.neutral