Why are you trying to do this from a TMF when you could do it from run()? You could only acquire a series and crossover from run, so you might as well apply the info from run.

Use trade loops.