Opto Isolator 150 V Square Wave Output
V2 -> Charge signal.
V3 -> Discharge signal.



The blue one is the Vg of M1. 
The red one is the Vg of M2.
The green one is the voltage of the capacitor (basically a piezo actuator).