Friend define the number of pitstops using GP4pitlapeditor, or in TSM you can edit the properties of each track. I prefer to set the number of laps and the strategy out of the game, because by reducing the percentage of the race, the game has a proper calculation to define the pits.