On the top menu bar of your Cockpit you can enter the Global Settings by clicking on the gear icon. There you can enable the Close Only mode. It will not open new positions anymore, it will only close the existing ones.
See video below for guidance: