To further promote market competition, enrich trading varieties, alleviate information asymmetry, and improve trading efficiency during electricity market reform in China, the continuous bidirectional transaction (CBT) was designed and applied in the Yunnan electricity market (YNEM), which is dominated by medium- and long-term power energy trading. The clearing model for the CBT with the goal of maximum social welfare is proposed in two bidding stages, including call auction (CA) and continuous double auction (CDA). Correspondingly, the integrated two-stage market clearing algorithm is also introduced to ensure the data consistency and business continuity. Finally, the analysis of the practical application shows that the proposed model, algorithm, and various key implementation strategies of the trading platform support the bidding and clearing of the CBT well. In addition, the research and application of CBT may also provide valuable insights for other electricity market construction.