The closing price is the price of the last transaction.
The opening price is not equal to yesterday's settlement price or yesterday's closing price.
The settlement price of commodity futures is calculated according to the weighted average of trading volume.
Financial futures are accounted for according to the weighted average of the trading price and trading volume in the last hour.
I am talking about the futures market.