The Automatic System for Perpetual Futures Contracts on Cryptocurrency Trading Using an Algorithm of Multiple Indicators to Predict the Trading Positions
Main Article Content
Abstract
At present, perpetual futures contracts on cryptocurrency trading still face the risk of ruin. Therefore, this research was conducted with the objectives of creating an algorithm of multiple indicators to predict the trading positions, developing the computer program for generating trading strategies, creating the automatic system for cryptocurrency perpetual futures contract trading, and measuring the financial performance of the automatic trading system. The financial performance measurement was divided into two parts: a backward test, which involved evaluating historical data over a 3-month period, and a forward test, which involved testing system using current real trading data during a 3-month period. The total testing duration was 6 months. The results revealed that both the backward and the forward tests achieved a 3-month profitability efficiency of 130% and 140%, respectively. The overall accuracy rates were 72.00% and 80.39%, respectively. It has been shown that investing with the automatic system for perpetual futures contracts on cryptocurrency trading using the algorithm of multiple indicators to predict the trading positions has the potential to generate greater returns than the general traders.
Article Details
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
Article Accepting Policy
The editorial board of Thai-Nichi Institute of Technology is pleased to receive articles from lecturers and experts in the fields of business administration, languages, engineering and technology written in Thai or English. The academic work submitted for publication must not be published in any other publication before and must not be under consideration of other journal submissions. Therefore, those interested in participating in the dissemination of work and knowledge can submit their article to the editorial board for further submission to the screening committee to consider publishing in the journal. The articles that can be published include solely research articles. Interested persons can prepare their articles by reviewing recommendations for article authors.
Copyright infringement is solely the responsibility of the author(s) of the article. Articles that have been published must be screened and reviewed for quality from qualified experts approved by the editorial board.
The text that appears within each article published in this research journal is a personal opinion of each author, nothing related to Thai-Nichi Institute of Technology, and other faculty members in the institution in any way. Responsibilities and accuracy for the content of each article are owned by each author. If there is any mistake, each author will be responsible for his/her own article(s).
The editorial board reserves the right not to bring any content, views or comments of articles in the Journal of Thai-Nichi Institute of Technology to publish before receiving permission from the authorized author(s) in writing. The published work is the copyright of the Journal of Thai-Nichi Institute of Technology.
References
M. Z. Khan, Y. Ali, H. B. Sultan, M. Hasan, and S. Baloch, “Future of currency: A comparison between traditional, digital fiat and cryptocurrency exchange mediums,” Int. J. Blockchains Cryptocurrencies, vol. 1, no. 2, pp. 206–224, 2020.
Binance Academy. “What is a spot market and how to do spot trading.” ACADEMY.BINANCE.com. https://academy.binance.com/en/articles/what-is-a-spot-market-and-how-to-do-spot-trading (accessed May 29, 2023).
Binance. “How to earn rewards on your crypto holdings.” BINANCE.com. https://www.binance.com/en/blog/earn/how-to-earn-rewards-on-your-crypto-holdings-421499824684902189 (accessed May 29, 2023).
CoinCodex. “Binance options–Why you should trade options on binance and how to get started.” BINANCE.com. https://www.binance.com/en/feed/post/131473 (accessed May 29, 2023).
MooneySeeds. “What is binance liquidity farming?.” BINANCE.com. https://www.binance.com/en/square/post/563779 (accessed May 29, 2023).
Binance. “Crypto futures and options: what are the similarities and differences?.” BINANCE.com. https://www.binance.com/en/blog/futures/crypto-futures-and-options-what-are-the-similarities-and-differences-421499824684902074 (accessed May 29, 2023).
Binance. “10 Reasons why you should trade on binance futures.” BINANCE.com. https://www.binance.com/en/blog/futures/10-reasons-why-you-should-trade-on-binance-futures-421499824684903288 (accessed May 29, 2023).
Y. Liu and A. Tsyvinski, “Risks and returns of cryptocurrency,” Rev. Financ. Stud., vol. 34, no. 6, pp. 2689–2727, Jun. 2021.
S. Brookson, Mastering Financial Management: Demystify Finance and Transform Your Financial Skills of Management. London, U.K.: Thorogood, 1998.
K. Qin, L. Zhou, P. Gamito, P. Jovanovic, and A. Gervais, “An empirical study of DeFi liquidations: Incentives, risks, and instabilities,” in Proc. 21st ACM Internet Meas. Conf., New York, NY, USA, Nov. 2021, pp. 336–350.
CoinGlass. “Liquidation Data.” COINGLASS.com. https://www.coinglass.com/LiquidationData (accessed Jul. 1, 2023).
P. Maguire, P. Moser, J. McDonnell, R. Kelly, S. Fuller, and R. Maguire, “A probabilistic risk-to-reward measure for evaluating the performance of financial securities,” in Proc. IEEE Conf. Comput. Intell. Financial Eng. and Economics, Singapore, Singapore, Apr. 2013, pp. 102–109.
P. Jaquart, S. Kopke, and C. Weinhardt, “Machine learning for cryptocurrency market prediction and trading,” J. Finance Data Sci., vol. 8, no. 12, pp. 331–352, 2022.
G. Bontempi, S. B. Taieb, and Y.-A. Le-Borgne, “Machine learning strategies for time series forecasting,” in Business Intelligence. Heidelberg, Germany: Springer, 2013, pp. 62–77.
T. Rossolimos. Quick Guide to MetaTrader 5 – HOW TO GUIDE: Trading Chart. (2017). [Online]. Available: https://timonandmati.com/wp-content/uploads/2022/03/QuickTradeGuideMetaTrader5ByTimonAndMATITrader-1.pdf
Y. Zhai, A. Hsu, and S. K. Halgamuge, “Combining news and technical indicators in daily stock price trends prediction,” in 4th Int. Symp. Neural Netw., Nanjing, China, Jun. 2017, pp. 1087–1096.
TradingView. Pine Script™ v5 User Manual: Repainting, 5 ed. Accessed: Jun. 8, 2023. [Online]. Available: https://www.tradingview.com/pine-script-docs/en/v5/concepts/Repainting.html
Y. Shynkevich, T. M. McGinnity, S. Coleman, Y. Li, and A. Belatreche, “Forecasting stock price directional movements using technical indicators: Investigating window size effects on one-step-ahead forecasting,” in Proc. 2014 IEEE Conf. Comput. Intell. Financial Eng. and Economics, London, U.K., Mar. 2014, pp. 341–348.
M. H. Pee, “Trend detection index,” Tech. Anal. Stocks Commodities, vol. 19, no. 11, pp. 54–61, Oct. 2001.
T. T. L. Chong and W. K. Ng, “Technical analysis and the London stock exchange: Testing the MACD and RSI rules using the FT30,” Appl. Economics Lett., vol. 15, no. 14, pp. 1111–1114, 2008.
A. Aydin and S. Yüksel, “An algorithmic trading application in crypto exchange,” Int. Academic Social Resour. J., vol. 6, no. 29, pp. 1269–1273, 2021.
J. Sharmila Vaiz and M. Ramaswami, “Forecasting stock trend using technical indicators with R,” Int. J. Comput. Intell. Inform., vol. 6, no. 3, pp. 206–219, 2016.
S. Mishra and J. Raut, “Optimizing performance of algorithmic trading using Heikin-Ashi and awesome oscillator techniques,” Int. Adv. Res. J. Sci., Eng. Technol., vol. 10, no. 5, pp. 831–835, 2023.
W. S. Hassn and A. T. Mohammed, “Managing trading decisions using the true strength index –An applied study,” Int. J. Res. Social Sci. Humanities, vol. 12, no. 1, pp. 168–186, 2022.
L. C. M. Phuong, “Investor sentiment by money flow index and stock return,” Int. J. Financial Res., vol. 12, no. 4, pp. 33–42, 2021.
P. Gao, R. Zhang, and X. Yang, “The application of stock index price prediction with neural network,” Math. Comput. Appl., vol. 25, no. 3, p. 53, 2020.
H. Pabuccu, S. Ongan, and A. Ongan, “Forecasting the movements of Bitcoin prices: An application of machine learning algorithms,” Quantitative Finance Economics, vol. 4, no. 4, pp. 679–692, 2020.
G. Jangkobpattana, “The profitability of bitcoin (BTC) trading strategies using technical indicator (ADX+DMI) compare with buy and hold strategy,” (in Thai), M.S. thesis, College Manage., Mahidol Univ., Bangkok, Thailand, 2022.
D. S. S. Sahid and F. Zulkarnain, “Expert advisor in foreign exchange using triple moving average crossover method,” Int. J. Res. Eng. Sci., vol. 10, no. 1, pp. 61–66, 2022.
P. Ładyzynski, K. Zbikowski, and P. Grzegorzewski, “Stock trading with random forests, trend detection tests and force index volume indicators,” in Proc. Int. Conf. Artif. Intell. Soft Comput., Zakopane, Poland, Jun. 2013, pp. 441–452.
J. Chutka and F. Rebetak, “Analysis of trading volume and its use in prediction future price movements in the process of maximizing trading earnings,” in Proc. 20th Int. Sci. Conf. Globalization and its Socio-Economic Consequences, Zilina, Slovakia, 2020, pp. 1–7.
TradingView. Pine Script™ v5 User Manual: Introduction, 5 ed. Accessed: Jun. 29, 2022. [Online]. Available: https://www.tradingview.com/pine-script-docs/en/v5/Introduction.html
J. Melunsky. “How to automate any trading scenario using TradingView alerts and Capitalise.ai.” CAPITALISE.ai. https://capitalise.ai/how-to-automate-any-trading-scenario-using-tradingview-alerts-and-capitalise-ai/ (accessed Jun. 29, 2023).
Binance: Buy Bitcoin & Crypto. (2023). Binance Inc. Accessed: Jun. 29, 2023. [Online]. Available: https://docs.finandy.com/exchange/binance/free
Binance. “Application Programming Interface (API).” ACADEMY.BINANCE.com. https://academy.binance.com/en/glossary/application-programming-interface (accessed Jun. 29, 2023).
A. K. Das et al., “A deep network-based trade and trend analysis system to observe entry and exit points in the Forex market,” Mathematics, vol. 10, no. 19, p. 3632, 2022, doi: 10.3390/math10193632.
L. Liu and Z. Pan, “Forecasting stock market volatility: The role of technical variables,” Econ. Modelling, vol. 84, pp. 55–65, 2020, doi: 10.1016/j.econmod.2019.03.007.
A. Sather. “What is the Value Trap Indicator? Formula Explained.” EINVESTINGFORBEGINNERs.com. https://einvestingforbeginners.com/about-us/value-trap-indicator/ (accessed Jul. 15, 2023).
W. Nayam and Y. Limpiyakorn, “XGBoost for classifying Ethereum short-term return based on technical factor,” in Proc. 9th Int. Conf. Comput. Technol. Appl., Vienna, Australia, May 2023, pp. 30–36.
K. Tretina and P. McGimpsey “Top 10 cryptocurrencies of August 2023.” FORBES.com. https://www.forbes.com/advisor/au/investing/cryptocurrency/top-10-cryptocurrencies/ (accessed Jul 9, 2023).
J. B. Nauzer, “Appreciating the risk of ruin,” Tech. Anal. Stock Commodities, vol. 10, no. 12, pp. 525–528, 1992.
Bybit. “How to use the risk/reward (RR) ratio for crypto trading.” LEARN.BYBIT.com. https://learn.bybit.com/indicators/how-to-use-risk-reward-ratio-for-crypto-trading (accessed Jun. 5, 2023).
Finandy. TradingView Signals, (2023). Accessed: Jul. 2, 2023. [Online]. Available: https://docs.finandy.com/algo-trading/signals
Finandy. Binance (via API-key), (2023). Accessed: Jul. 2, 2023. [Online]. Available: https://docs.finandy.com/exchange/binance