In a saucepan place the sugar and 150ml water and, over a low heat, slowly bring to the boil until the sugar dissolves.
Add the onions, apples, balsamic vinegar, chopped pepper and mustard powder, simmer gently for 1-1½ hours until the mixture becomes thick in consistency and the onions very soft and caramelised.