def roc(dataset_21):
    latest = dataset_21[1-len(dataset_21)]
    oldest = dataset_21[0]
    ROC = (latest - oldest) / (oldest) * 100  
    return ROC
dataset/ETHPy150Open TheSriram/MLT4Trading/Project 3/testlearner.py/roc/swapped operands of `-`