For a set entry condition how do I write I only want it to open 1 trade. Rather than repeated opening of positions when the entry condition is met in a set time period?