Two behind after an opening 69, Wilson closed with a 72 to finish on three-under, winning by a shot from Joondalup’s Greer.

“I’m really pleased as I have played in Foundation events since I was 11 so it is a good one for me to win,” said 17-year-old Wilson.

“I also met my coach, Davy Burns, through the Foundation and my whole game was solid over the two days.”

Wilson birdied first and third then had a double-bogey at the fifth. He slipped to one-over for round after starting for home witn a bogey, birdied the 12th and 14th before dropping a shot at the 15th.

Greer’s hopes of victory were dashed by a double-bogey 5 at the 13th and though he then birdied two of the last five holes, he came up just short.

“I minimised any mistakes and was also resilient and hopefully this win augurs well for the Sir Henry Cooper Masters at Nizel in a fortnight’s time,” added Wilson, whose family own Castle Park, near Gifford.

“The Scotland side for the European Boys’ Team Championship is being picked after that and hopefully this win has boosted my chances for that.”

In an event that saw three-time European Tour winner Gallacher on starting duties on both days before presenting the prizes, Fereneze’s Roddy McAuley finished third on 141.