Quote from Loki45:
Not at all. After a time span determined by the random generator the trade is closed, no matter what the result is. Remember, this trading program is not about making money. The only purpose is to find out what the market's response is to randomly generated entry and exit orders.
you might want to check for bias in the positions. You are simply using a random length window to sample the data. If the data has positive bias (which it should for your type of data), and you are taking both long and short slices of the same data population, the long bias will cause the net expectation to be negative since you are taking short trades in roughly equal proportion.
What happens if you run the same experiment, with the same underlying data with long side only?