MF Pro does not store the timing of yellow and red cards.
You can keep a counter of yellow cards, e.g. ycntr, and set ycntr to match_ycards1 + match_ycards2 after each goal using a trigger.
Then you can check whether ycntr is equal to or less than match_ycards1 + match_ycards2 - 3. This will indicate that no goals have been scored since the last three yellow cards.