The ions involved in the opening and closing of stomata are:

Calcium

Sodium

Magnesium

Potassium