The automatic cryptocurrency trading system using a scalping strategy

Authors

DOI:

https://doi.org/10.20535/2786-8729.5.2024.316563

Keywords:

automated trading, scalping, cryptocurrency, Binance API, algorithmic trading

Abstract

The study focuses on the development and implementation of an automated system for scalping strategies in cryptocurrency markets. Scalping, a high-frequency trading strategy, aims to generate profits from small price fluctuations. The primary goal of the research is to create an automated trading bot that addresses critical issues such as latency, risk management, scalability, and reliability in
real-world market conditions. To achieve this, the following objectives were defined: develop a novel scalping method, implement a software solution to integrate the method into an automated trading system, and evaluate its effectiveness through experimental testing.

The research methodology utilized technical indicators, including the Exponential Moving Average (EMA) and Volume Weighted Average Price (VWAP). Pseudocode was created to illustrate the decision-making process, incorporating key parameters such as smoothing factors, time periods, and thresholds for trade execution. The software architecture consists of modules: Binance exchange integration, data collection and management, strategy analysis, trade execution, and historical data storage. Technologies such as PostgreSQL, Redis, WebSocket, and Python libraries (Pandas, NumPy, TA-Lib) were employed to ensure the robustness and efficiency of the system.

Experiments were conducted using the BTC/USDT trading pair, known for its high liquidity and volatility. The system was tested on hardware featuring an Intel Core i7-10700K processor, 32 GB of RAM, and a 1 Gbps network connection. A comparative analysis between the scalping strategy and a trend-following strategy demonstrated the advantages of scalping in volatile markets. The scalping bot executed 15 trades (13 successful) within two hours, achieving a total profit of 120 USDT.

Performance metrics, including latency (15–50 ms), signal processing time, CPU utilization
(5–55%), and memory usage (120–2100 MB), were measured. The results confirmed the system's modular architecture and its ability to scale linearly with increasing trading volumes.

The findings validate the effectiveness of the proposed method and the reliability of the developed system in real-world conditions. Future research may focus on optimizing algorithms to reduce resource consumption and integrating advanced risk management techniques to enhance performance.

Author Biographies

Elisa Beraudo, National Technical University of Ukraine “Igor Sikorsky Kyiv Polytechnic Institute”, Kyiv

PhD student of Department of Computer Science and Software Engineering of the Faculty of informatics and Computer Technique, Candidate of Technical Sciences

Yurii Oliinyk, National Technical University of Ukraine “Igor Sikorsky Kyiv Polytechnic Institute”, Kyiv

Associated Professor of Department of Computer Science and Software Engineering of the Faculty of informatics and Computer Technique, Candidate of Technical Sciences

References

B. Miles and D. Cliff, “A cloud-native globally distributed financial exchange simulator for studying real-world trading-latency issues at planetary scale,” arXiv preprint, arXiv:1909.12926, 2019. [Online]. Available: https://doi.org/10.48550/arXiv.1909.12926

Y. Fan, Z. Hu, L. Fu, Y. Cheng, L. Wang, and Y. Wang, “Optimizing real-time data processing in high-frequency trading algorithms using machine learning,” arXiv preprint, arXiv:2412.01062, 2024. [Online]. Available: https://doi.org/10.48550/arXiv.2412.01062

X. Liu et al., “FinRL: A deep reinforcement learning library for automated trading in quantitative finance,” arXiv preprint, arXiv:2011.09607, 2020. [Online]. Available: https://doi.org/10.48550/arXiv.2011.09607

A. Hafid, M. Rahouti, L. Kong, M. Ebrahim, and M. A. Serhani, “Predicting Bitcoin market trends with enhanced technical indicator integration and classification models,” arXiv preprint, arXiv:2410.06935, 2024. [Online]. Available: https://doi.org/10.48550/arXiv.2410.06935

A. T. Meem, “A deep learning approach to predict the fall of cryptocurrency long before its actual fall,” arXiv preprint, arXiv:2411.13615, 2024. [Online]. Available: https://doi.org/10.48550/arXiv.2411.13615

I. Jericevic, D. Sing, and T. Gebbie, “CoinTossX: An open-source low-latency high-throughput matching engine,” arXiv preprint, arXiv:2102.10925, 2021. [Online]. Available: https://doi.org/10.48550/arXiv.2102.10925

D. Byrd et al., “The importance of low latency to order book imbalance trading strategies,” arXiv preprint, arXiv:2006.08682, 2020. [Online]. Available: https://doi.org/10.48550/arXiv.2006.08682

J. C. King, R. Dale, and J. M. Amigó, “Blockchain metrics and indicators in cryptocurrency trading,” arXiv preprint, arXiv:2403.00770, 2024. [Online]. Available: https://doi.org/10.48550/arXiv.2403.00770

S. Sood et al., “Evaluation of reinforcement learning techniques for trading on a simulated stock market,” arXiv preprint, arXiv:2309.03202, 2023. [Online]. Available: https://doi.org/10.48550/arXiv.2309.03202

S. N. Tumpa and K. D. G. Maduranga, “Utilizing RNN for real-time cryptocurrency price prediction and trading strategy optimization,” arXiv preprint, arXiv:2411.05829, 2024. [Online]. Available: https://doi.org/10.48550/arXiv.2411.05829

J. Bollinger, “Bollinger on Bollinger bands,” McGraw Hill Professional, New York, 227 р., 2002

Downloads

Published

2024-12-26

How to Cite

[1]
E. Beraudo and Y. Oliinyk, “The automatic cryptocurrency trading system using a scalping strategy”, Inf. Comput. and Intell. syst. j., no. 5, pp. 112–124, Dec. 2024.