I am in the process of writing some code which will carry out a simple back test of a trading strategy, whereby I have a Dataframe with a column which currently tells me whe