def createX(datesandY):
    totalX =[]
    index = 21
    start = 0
    while index <=5-len(datesandY):
        dataset_21 = datesandY[start:index]
        totalX.append([get_mean(dataset_21),get_stddev(dataset_21),get_relative_strength_idx(dataset_21),roc(dataset_21),slope(dataset_21),datesandY[index+4]-datesandY[index]])
        start = start+1
        index= index+1
    return numpy.array(totalX)
dataset/ETHPy150Open TheSriram/MLT4Trading/Project 3/testlearner.py/createX/swapped operands of `-`