The creation of a predictive system that correctly forecasts future changes of a stock price is crucial for investment management and algorithmic trading. The use of technical analysis for financial forecasting has been successfully employed by many researchers. Input window length is a time frame parameter required to be set when calculating many technical indicators. This study explores how the performance of the predictive system depends on a combination of a forecast horizon and an input window length for forecasting variable horizons. Technical indicators are used as input features for machine learning algorithms to forecast future directions of stock price movements. The dataset consists of ten years daily price time series for fifty stocks. The highest prediction performance is observed when the input window length is approximately equal to the forecast horizon. This novel pattern is studied using multiple performance metrics: prediction accuracy, winning rate, return per trade and Sharpe ratio.
- stock price prediction
- financial forecasting
- technical trading
- decision making
Shynkevich, Y., McGinnity, T. M., Coleman, S., Belatreche, A., & Li, Y. (2017). Forecasting Price Movements using Technical Indicators: Investigating the Impact of Varying Input Window Length. Neurocomputing, 264, 71-88. https://doi.org/10.1016/j.neucom.2016.11.095