def checkIncreaseTomorrow(close,tol):
    """ Determine if price will increase, decrease, or stay the same within specified tolerance
        Input tol =         Tolerance for price movement as a percent
                            ex. 0.02 = 2% tolerance
        Output increased:   Array of output values
                            0   = increase next period > tolerance
                            2   = decrease next period > tolerance
                            1  = price stays within range of tolerance
    """
    tol = tol + 1
    increased = []
    for i in range(len(close)-1):
        if close[i]*tol<close[i+1]:
            increased.append(1)
        else:
            increased.append(0)
    increased.append(0)
    return increased