Inside the run function, at the beginning before you open any trades