Opening of a position or entering the market is the primary buy or sale of a certain amount of a financial instrument. In the trading platform, this can be done by placing a market order, as a result of which a deal is executed. A position can also be opened at the triggering of a pending order.
Then, in order to profit from the difference of rates, it is necessary to close the position. When you close a trade position, an operation opposite to the first one is performed. For example, if the first trade operation was buying one lot of GOLD, then to close the position, sell one lot of the same instrument.
Closing a position refers to executing a security transaction that is the exact opposite of an open position, thereby nullifying it and eliminating the initial exposure. Closing a long position in a security would entail selling it, while closing a short position in a security would involve buying it back. Taking offsetting positions in swaps is also very common to eliminate exposure prior to maturity.