To write an option, go to the option trading screen and select “Sell to Open”. Similarly, if you wish to close the written position, select “Buy to Close”.