First you mix the oil with the vinegar well (this way the two combine more easily with the ketchup). Then stir in the ketchup until a slightly thick paste is formed.
Then you cut an onion into small pieces and mix it with the mass (onion can also be left out, but always add to taste a sauce), at the end you season the whole thing with salt, pepper and basil.