Skip to main content

k-NN Based Forecast of Short-Term Foreign Exchange Rates

  • Conference paper
  • First Online:
  • 1584 Accesses

Part of the book series: Lecture Notes in Computer Science ((LNAI,volume 11016))

Abstract

Recently, day trading, that is, short-term trading that sells/buys financial instruments multiple times within a single trading day is rapidly spreading. But, there are few studies about forecasting short-term foreign exchange rates. Against this background, this work proposes a method of forecasting short-term foreign exchange rates based on k-nearest neighbor (k-NN). The proposed method restricts the search range of k-NN, and avoids forecasting the exchange rate if a certain condition is satisfied. We experimentally evaluate the proposed method by comparing it with an existing k-NN based method, linear regression, and multi-layer perceptron in three metrics: the mean squared forecast error (MSFE), the mean correct forecast direction (MCFD), and the mean forecast trading return (MFTR). The results show the proposed method outperforms the other methods in terms of both MCFD and MFTR, which implies reducing the forecast error does not necessarily contribute to making profits.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Notes

  1. 1.

    https://www.click-sec.com.

  2. 2.

    The second dataset contains the year-end and New Year holidays during which the market is closed. Therefore, we had to use a longer period in the second dataset than in the first one to gather the same size of training data for each test day.

References

  1. Choudhry, T., McGroarty, F., Peng, K., Wang, S.: High-frequency exchange-rate prediction with an artificial neural network. Intell. Syst. Account. Financ. Manage. 19(3), 170–178 (2012)

    Article  Google Scholar 

  2. Granger, C.W.: Outline of forecast theory using generalized cost functions. Span. Econ. Rev. 1(2), 161–173 (1999)

    Article  Google Scholar 

  3. Kia, A.N., Haratizadeh, S., Zare, H.: Prediction of USD/JPY exchange rate time series directional status by KNN with dynamic time warping AS distance function. Bonfring Int. J. Data Min. 3(2), 12 (2013)

    Google Scholar 

  4. Lee, T.H.: Loss functions in time series forecasting. Int. Encycl. Soc. Sci. 9, 495–502 (2008)

    Google Scholar 

  5. Meese, R.A., Rogoff, K.: Empirical exchange rate models of the seventies: Do they fit out of sample? J. Int. Econ. 14(1–2), 3–24 (1983)

    Article  Google Scholar 

  6. Qian, B., Rasheed, K.: Foreign exchange market prediction with multiple classifiers. J. Forecast. 29(3), 271–284 (2010)

    MathSciNet  MATH  Google Scholar 

  7. Yao, J., Tan, C.L.: A case study on using neural networks to perform technical forecasting of forex. Neurocomputing 34(1), 79–98 (2000)

    Article  Google Scholar 

  8. Zhou, B.: High-frequency data and volatility in foreign-exchange rates. J. Bus. Econ. Stat. 14(1), 45–52 (1996)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Kouzou Ohara .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Umemoto, H., Toyota, T., Ohara, K. (2018). k-NN Based Forecast of Short-Term Foreign Exchange Rates. In: Yoshida, K., Lee, M. (eds) Knowledge Management and Acquisition for Intelligent Systems. PKAW 2018. Lecture Notes in Computer Science(), vol 11016. Springer, Cham. https://doi.org/10.1007/978-3-319-97289-3_11

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-97289-3_11

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-97288-6

  • Online ISBN: 978-3-319-97289-3

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics