

def _get_stripped(values1, values2, alignLeft):
    if (len(values1) > len(values2)):
        if alignLeft:
            values1 = values1[0:len(values2)]
        else:
            values1 = values1[(len(values1) - len(values2)):]
    elif (len(values2) > len(values1)):
        if alignLeft:
            values2 = values2[0:len(values1)]
        else:
            values2 = values2[(len(values2) - len(values1)):]
    return (values1, values2)

dataset/ETHPy150Open gbeced/pyalgotrade/pyalgotrade/technical/cross.py _get_stripped/original