Alexandria Engineering Journal (Jun 2024)

Speed vs. efficiency: A framework for high-frequency trading algorithms on FPGA using Zynq SoC platform

  • Abbas Ali,
  • Abdullah Shah,
  • Azaz Hassan Khan,
  • Malik Umar Sharif,
  • Zaka Ullah Zahid,
  • Rabia Shahid,
  • Tariqullah Jan,
  • Mohammad Haseeb Zafar

Journal volume & issue
Vol. 96
pp. 1 – 14

Abstract

Read online

Software-based technical indicators have been widely used for the stock market forecasting, aiming to predict market direction. Even though many algorithms for the software based technical indicators are presented, there are almost no hardware implementations reported in the literature. In this paper, the hardware implementation is presented for three commonly used technical indicators: Moving Average Convergence/Divergence (MACD), Relative Strength Index (RSI), and Aroon. Latency evaluation is conducted for Bitcoin and Ethereum within a single-day timeframe, utilizing the Xilinx Zynq-7000 programmable SoC XC7Z020-CLG484-1 platform.Additionally, various hardware/software (HW/SW) partitioning strategies are explored to leverage the flexibility of software alongside the performance advantages of hardware via the Zynq SoC platform. The results show that the best performing technical indicator is MACD with a speedup of 30 times over its software only counterpart. Furthermore, a hybrid design integrating multiple technical indicators is proposed, pairing MACD with RSI due to their competitive throughput values, differing by only 0.38 microseconds. This hybrid approach capitalizes on the parallel processing capabilities of hardware, enabling multiple systems to operate simultaneously.

Keywords