Implementation of the Single Moving Average Algorithm for Stock Prediction in a Web-Based POS System at My Perfume

Authors

  • Fahmi Abdillah Author
  • Akmal Author

Keywords:

Keywords: Point of Sale, Simple Moving Average, Stock Forecasting, MAPE, Next.js.

Abstract

In the competitive retail industry, inventory management is a determining factor in business sustainability. The main problem faced by the “My Perfume” retail store is uncertainty in stock management due to reliance on manual recording methods and the owner's intuition. This situation often leads to operational inefficiencies in the form of overstocking, which burdens working capital, and stockouts of best-selling products, which result in lost sales. This study aims to overcome these problems by designing and implementing a Single Moving Average (SMA) forecasting algorithm into a web-based Point of Sale (POS) system. The system was developed using a systematic Waterfall model, utilizing Modern Web Architecture technology consisting of Next.js for a responsive user interface (frontend) and Express.js for server logic management (backend). The SMA algorithm was chosen for its ability to dampen fluctuations in stationary sales data to produce stable prediction trends. The system's performance was evaluated through accuracy testing using the Mean Absolute Percentage Error (MAPE) method on historical sales transaction data. The test results show that the system is capable of predicting stock requirements with a high degree of precision, producing an average error value of only 3.33%. Referring to forecasting capability evaluation standards, this value is classified as Highly Accurate. These findings prove that integrating forecasting methods into POS systems effectively helps business owners make precise procurement decisions, minimize the risk of losses, and support business management transformation towards a data-driven approach.

Downloads

Download data is not yet available.

Author Biographies

  • Fahmi Abdillah

    University students at Madura University

  • Akmal

    University students at Madura University

References

REFERENSI

[1] F. Prasetyo Eka Putra, Moh Riski, Riyan, Yayu Rahma Febriani, and Muhammad Umar Mansyur, “Optimization Of Web Based Academic Information System Design To Increase Efficiency In Junior High Schools,” J. Inf. dan Teknol., pp. 150–158, 2024, doi: 10.60083/jidt.v6i2.545.

[2] F. P. Eka Putra, F. I. Maulana, N. M. Akbar, and W. Febriantoro, “Twitter sentiment analysis about economic recession in indonesia,” Bull. Soc. Informatics Theory Appl., vol. 7, no. 1, pp. 1–7, 2023, doi: 10.31763/businta.v7i1.592.

[3] F. P. E. Putra, F. Fauzan, S. Syirofi, M. Mursidi, D. Wahid, and A. Nuraini, “Sistem Pengendali Lingkungan Pertanian Dengan Wireless Sensor Network Untuk Mengoptimalkan Budidaya Hidroponik,” 2024. doi: 10.47709/digitech.v3i2.3461.

[4] F. P. E. Putra, U. Ubaidi, A. Zulfikri, G. Arifin, and R. M. Ilhamsyah, “Analysis of Phishing Attack Trends, Impacts and Prevention Methods: Literature Study,” 2024, pdfs.semanticscholar.org. doi: 10.47709/brilliance.v4i1.4357.

[5] F. P. E. Putra, U. Ubaidi, R. N. Saputra, F. M. Haris, and S. N. R. Barokah, “Application of Internet of Things Technology in Monitoring Water Quality in Fishponds,” 2024. doi: 10.47709/brilliance.v4i1.4231.

[6] F. P. Eka Putra, M. N. Arifin, K. Zulfana Imam, E. Saputra, and Sofiyullah, “Pengembangan Sistem Informasi Laboratorium Terintegerasi Sistem Akademik Menggunakan Agile Scrum,” J. Inf. dan Teknol., pp. 109–119, 2023, doi: 10.37034/jidt.v5i2.367.

[7] A. Baidawi, “JARINGAN SENSOR NIRKABEL DAN IoT UNTUK KOTA PINTAR PAMEKASAN,” J. Sist. Inf. Kaputama, vol. 7, no. 2, pp. 104–110, 2023, doi: 10.59697/jsik.v7i2.108.

[8] A. Zulfikri, F. P. E. Putra, M. A. Huda, H. Hasbullah, M. Mahendra, and M. Surur, “Analisis Keamanan Jaringan Dari Serangan Malware Menggunakan Filtering Firewall Dengan Port Blocking,” 2023. doi: 10.47709/digitech.v3i2.3379.

[9] F. P. E. Putra, K. Mufidah, R. M. Ilhamsyah, S. A. Efendy, and S. N. R. Barokah, “Tinjauan Performa RouterOS Mikrotik dalam Jaringan Internet: Analisis Kinerja dan Kelayakan,” 2024. doi: 10.47709/digitech.v3i2.3446.

[10] F. P. E. Putra, D. A. M. Putra, A. Firdaus, and A. Hamzah, “Analisis Kecepatan Dan Kinerja Jaringan 5G (generasi ke 5) Pada Wilayah Perkotaan,” INFORMATICS Educ. Prof. J. Informatics, vol. 8, no. 1, p. 47, 2023, doi: 10.51211/itbi.v8i1.2439.

[11] A. Hasahatan, Maniah, and S. Waskito, “The Influence of Technological Advancements in Inventory Control on Distribution Efficiency and Customer Satisfaction: A Systematic Literature Review,” Int. J. Sci. Soc., 2025, doi: 10.54783/ijsoc.v7i2.1410.

[12] A. Rohilla, T. Kundu, R. Kapoor, and J. Sheu, “Enhancing Retail Inventory Replenishment Amid Product Life Cycle Shifts: A System Dynamics Approach,” IEEE Trans. Eng. Manag., vol. 72, pp. 1939–1953, 2025, doi: 10.1109/tem.2025.3564210.

[13] D. Sherliyanda, M. D. Irawan, and A. B. Nasution, “Implementation of the Single Moving Average Method in Forecasting Sales of Motorcycle Spare Parts,” J. Dinda Data Sci. Inf. Technol. Data Anal., 2025, doi: 10.20895/dinda.v5i1.1791.

[14] I. Svetunkov and F. Petropoulos, “Old dog, new tricks: a modelling view of simple moving averages,” Int. J. Prod. Res., vol. 56, pp. 6034–6047, 2018, doi: 10.1080/00207543.2017.1380326.

[15] D. Barrow, “Forecasting intraday call arrivals using the seasonal moving average method,” J. Bus. Res., vol. 69, pp. 6088–6096, 2016, doi: 10.1016/j.jbusres.2016.06.016.

[16] D. P. Putra, S. A. Siregar, S. R. Fadillah, and Z. K. Ningtyas, “PERAMALAN PENJUALAN MOBIL DENGAN MENERAPKAN METODE SINGLE MOVING AVERAGE DAN SINGLE EXPONENTIAL SMOOTHING,” J. Pariwisata Bisnis Digit. dan Manaj., 2024, doi: 10.33480/jasdim.v3i2.5631.

[17] A. Pataropura, I. D. Sabatino, and R. Riki, “Inventory Management with Forecasting Method: Single Moving Average and Trend Projection,” bit-Tech, 2020, doi: 10.32877/bt.v2i3.162.

[18] D. Purnamasari, E. R. Arumi, and A. Primadewi, “Implementasi Metode Single Moving Average Untuk Prediksi Stok Produsen,” JURIKOM (Jurnal Ris. Komputer), 2022, doi: 10.30865/jurikom.v9i5.4946.

[19] M. H. P. Swari, I. S. Handika, and I. S. Satwika, “Comparison of Simple Moving Average, Single and Modified Single Exponential Smoothing,” 2021 IEEE 7th Inf. Technol. Int. Semin., pp. 1–5, 2021, doi: 10.1109/itis53497.2021.9791516.

[20] U. Ulfa, S. Retno, and Safwandi, “COMPARING SIMPLE EXPONENTIAL SMOOTHING AND ADVANCED TIME SERIES FORECASTING FOR CEMENT STOCK PREDICTION AT PT. SOLUSI BANGUN ANDALAS,” Rabit J. Teknol. dan Sist. Inf. Univrab, 2025, doi: 10.36341/rabit.v10i2.6483.

[21] W. Punnahitanond, P. Kantavat, N. Prompoon, and T. Ananpiriyakul, “Forecasting Drug Dispensation Using Machine Learning: A Case Study on a Large Public Hospital,” 2025 8th Int. Conf. Artif. Intell. Big Data, pp. 299–304, 2025, doi: 10.1109/icaibd64986.2025.11082070.

[22] G. Y. Rajendra and G. Raj, “Cost Reduction Strategies in Retail: Implementing AI-Driven Demand Forecasting for Inventory Optimization,” Int. J. Res. Mod. Eng. & Emerg. Technol., 2025, doi: 10.63345/ijrmeet.org.v13.i3.5.

[23] A. R. Chowdhury, R. Paul, and F. Z. Rozony, “A SYSTEMATIC REVIEW OF DEMAND FORECASTING MODELS FOR RETAIL E-COMMERCE ENHANCING ACCURACY IN INVENTORY AND DELIVERY PLANNING,” Int. J. Sci. Interdiscip. Res., 2025, doi: 10.63125/mbbfw637.

[24] M. Thakar and P. Swaminarayan, “E-Commerce Inventory Prediction by Hybridization Deep and Machine Learning,” J. Inf. Syst. Eng. Manag., 2025, doi: 10.52783/jisem.v10i16s.2644.

[25] J. Chen, “Advanced Analytics for Retail Inventory and Demand Forecasting,” Trans. Econ. Bus. Manag. Res., 2024, doi: 10.62051/jme9b319.

[26] J. Loa, J. Wiratama, and F. A. Halim, “Optimizing Inventory Management in Retail Companies Through Sales Prediction Using XGBoost,” 2025 4th Int. Conf. Electron. Represent. Algorithm, pp. 1–6, 2025, doi: 10.1109/icera66156.2025.11087347.

[27] S. Sukirno, H. Suhendar, D. Kurniadi, A. Mulyani, and N. S. Lestari, “Point of sale system development to web programming using codeigniter framework,” Proc. 9TH Int. Symp. Innov. Bioprod. Indones. Biotechnol. Bioeng. 2022 Strength. Bioeconomy through Appl. Biotechnol. Bioeng. Biodivers., 2023, doi: 10.1063/5.0175684.

[28] V. Pavithra, H. Abbas, M. M, P. Chidambaram, and J. S, “Optimizing Inventory Management using Demand Forecasting based Ensemble Stacking Model with Hyperparameter Tuning,” 2025 Int. Conf. Intell. Syst. Comput. Networks, pp. 1–6, 2025, doi: 10.1109/iciscn64258.2025.10934488.

[29] E. Siswanto, E. S. Wibawa, and Z. Mustofa, “Implementasi Aplikasi Sistem Peramalan Persedian Barang Menggunakan Metode Single Moving Average Berbasis Web,” Elkom J. Elektron. dan Komput., 2021, doi: 10.51903/elkom.v14i2.515.

[30] S. Ayumida, R. Ratnawati, L. Hakim, and N. Ichsan, “Point of Sale (POS) Application Tire at the Diva Cirebon Store Based on Website,” Int. J. Comput. Inf. Syst., 2025, doi: 10.29040/ijcis.v6i1.211.

[31] K. R., “ADVANCING POS SYSTEMS FOR SEAMLESS RETAIL EXPERIENCES,” INTERANTIONAL J. Sci. Res. Eng. Manag., 2024, doi: 10.55041/ijsrem33743.

[32] N. Halstian, “Use of Digital Tools for Sales Management in The Retail Business.,” Am. J. Manag. Econ. Innov., 2025, doi: 10.37547/tajmei/volume07issue07-04.

[33] H. Asrani, S. Vishwakarma, D. Asrani, and D. Asrani, “POINT OF SALE SYSTEMS,” Int. J. Innov. Res. Comput. Sci. Technol., 2024, doi: 10.55524/csistw.2024.12.1.63.

[34] Y. S. Wekong, A. T. A. P. Kusuma, and C. Tonyjanto, “Artikel Design and Development of a Web-Based POS (Point of Sales) System (Case Study: Massimo Parfum),” J. KESEHATAN, SAINS, DAN Teknol., 2025, doi: 10.36002/js.v4i1.4229.

[35] V. Fostolovych, T. Botsian, S. Pavlova, R. Fostolovych, and Y. Gurtovyi, “POSTER AS A TOOL FOR DIGITALIZATION OF THE MANAGEMENT SYSTEM OF HOTEL AND RESTAURANT BUSINESS ENTERPRISES,” Econ. Manag. Innov., 2024, doi: 10.35433/issn2410-3748-2024-1(34)-9.

[36] “Point of Sale’s Transaction Data: Envisioning Micro Small and Medium Enterprise (MSME)’s Inventory Management Strategy,” 2024. doi: 10.55057/ijbtm.2024.6.1.38.

[37] M. Martono, “Perancangan Sistem E-Commerce dan Software Point of Sale (POS) pada Restoran dan Kafe Berbasis Client Server,” J. Ilm. Sist. Inf. dan Ilmu Komput., 2025, doi: 10.55606/juisik.v5i2.1459.

[38] E. A. Natividad, A. M. Musngi, R. Molinyawe, E. Rivera, R. Torres, and D. E. Moreno, “System Quality and Micro Food Businesses’ Acceptance of the Cloud-based Point of Sale System for Inventory Management,” Proc. 2024 15th Int. Conf. E-business, Manag. Econ., 2024, doi: 10.1145/3691422.3691480.

[39] A. Joshi, “Retail Edge: Scalable POS System with Receipt Digitization for the Unorganized Sector,” Int. J. Sci. Res. Eng. Manag., 2025, doi: 10.55041/ijsrem47923.

[40] N. P. L. Santiari and I. Rahayuda, “Analisis Perbandingan Metode Single Exponential Smoothing dan Single Moving Average dalam Peramalan Pemesanan,” vol. 6, pp. 312–318, 2021, doi: 10.32493/informatika.v6i2.10135.

[41] N. C. Gandesrukma, B. P. Sanjaya, A. Damayanti, and R. Nurcahyo, “Implementation of Time Series Forecasting Using Single Moving Average Model - A Case Study in Printing Industry,” Proc. Int. Conf. Ind. Eng. Oper. Manag., 2021, doi: 10.46254/in01.20210081.

[42] F. Johnston, J. Boyland, M. Meadows, and E. Shale, “Some properties of a simple moving average when applied to forecasting a time series,” J. Oper. Res. Soc., vol. 50, pp. 1267–1271, 1999, doi: 10.1057/palgrave.jors.2600823.

[43] A. S, “Sales Predictor Using Simple Linear Regression and Simple Moving Average Model,” Int. J. Res. Appl. Sci. Eng. Technol., 2023, doi: 10.22214/ijraset.2023.56609.

[44] AkhmadTajuddinTholaby, “Comparison of Forecasting Accuracy Using the Short Moving Average (SMA) Method Using Boxplot Outlier Filtering and Not Using Outlier Filtering for Data that has a high level of variation,” Tech. Rom. J. Appl. Sci. Technol., 2023, doi: 10.47577/technium.v17i.10098.

[45] A. Tang, S. Tang, T. Han, H. Zhou, and L. Xie, “A Modified Slime Mould Algorithm for Global Optimization,” Comput. Intell. Neurosci., vol. 2021, 2021, doi: 10.1155/2021/2298215.

[46] Y. S, C. J, and K. K, “Integrating ARIMA with Simple Moving Averages for Predictive Stock Price Modeling,” 2025 Int. Conf. Intell. Syst. Comput. Networks, pp. 1–6, 2025, doi: 10.1109/iciscn64258.2025.10934450.

[47] N. Gordienko, Y. Gordienko, and S. Stirenko, “Synchronized Multi-Augmentation with Multi-Backbone Ensembling for Enhancing Deep Learning Performance,” Appl. Syst. Innov., 2025, doi: 10.3390/asi8010018.

[48] F. Gharehchopogh, A. Uçan, T. Ibrikci, B. Arasteh, and G. Işık, “Slime Mould Algorithm: A Comprehensive Survey of Its Variants and Applications,” Arch. Comput. Methods Eng., vol. 30, pp. 2683–2723, 2023, doi: 10.1007/s11831-023-09883-3.

[49] S. Kim and H. Kim, “A new metric of absolute percentage error for intermittent demand forecasts,” Int. J. Forecast., vol. 32, pp. 669–679, 2016, doi: 10.1016/j.ijforecast.2015.12.003.

[50] J. M. Moreno, P. Pol, A. S. Abad, and B. C. Blasco, “Using the R-MAPE index as a resistant measure of forecast accuracy.,” Psicothema, vol. 25 4, pp. 500–506, 2013, doi: 10.7334/psicothema2013.23.

Published

28-12-2025

How to Cite

Implementation of the Single Moving Average Algorithm for Stock Prediction in a Web-Based POS System at My Perfume. (2025). Karapan Network Journal : Journal Computer Technology and Mobile Ad Hoc Network, 2(01). https://ejournal.omahtabing.com/knj/article/view/147

Most read articles by the same author(s)