because after HK market close, the euro, US market are still running night, and in the morning , japan, taiwan market are start before HK. once these market are affected, HK will be affected too.
The factor normally include the government policy, company news etc..
Thus that why the price are always change, closing price <> opening price
also opening price are decided by the pre-market time 9:30-9:45 the price which have the most transaction in the period, the price is the opening price then.