14
Introduction to FX Data Mining Andrew Kreimer Algonell – Scientific FX Trading

Introduction to FX Data Mining - WordPress.com · Data Mining and Machine Learning • Data Mining • Massive amounts of data (We have it in FX) • Non trivial extraction of knowledge

  • Upload
    others

  • View
    30

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Introduction to FX Data Mining - WordPress.com · Data Mining and Machine Learning • Data Mining • Massive amounts of data (We have it in FX) • Non trivial extraction of knowledge

Introduction to FX Data Mining

Andrew Kreimer

Algonell – Scientific FX Trading

Page 2: Introduction to FX Data Mining - WordPress.com · Data Mining and Machine Learning • Data Mining • Massive amounts of data (We have it in FX) • Non trivial extraction of knowledge

FX, FOREX or Foreign Exchange Market

• The biggest market in the world

• ~5 ∗ 1012 (~5 trillion) daily trading volume (2015)

• 5 days a week, 24 hours a day, Monday – Friday

• Players: three main levels

• Banks, Investment Companies

• Brokers

• Traders

• Speculative nature – most of the trading is just for the difference

• The simple goal - gain difference in pips (1/10000 change of price)

• Buy low, sell high (Long)

• Buy EURUSD @ 1.01000 and then Sell @ 1.02000 +100pips gain

• Sell high, buy low (Short)

• Sell EURUSD @ 1.01000 and then Buy @ 1.00000 +100pips gain

Page 3: Introduction to FX Data Mining - WordPress.com · Data Mining and Machine Learning • Data Mining • Massive amounts of data (We have it in FX) • Non trivial extraction of knowledge

Data Mining and Machine Learning• Data Mining

• Massive amounts of data (We have it in FX)

• Non trivial extraction of knowledge from data (We need it in FX)

• Data Mining methods

• Classification – spam & fraud detection

• Association – YouTube & Amazon

• Clustering – unstructured data

• Process Mining – log mining

• Text Mining – news mining

• Machine Learning

• Algorithms for knowledge discovery

• Neural Networks (Widely used in FX)

• Random Forest (Not appreciated as should be)

• Linear Regression (Too simple, but well known)

Page 4: Introduction to FX Data Mining - WordPress.com · Data Mining and Machine Learning • Data Mining • Massive amounts of data (We have it in FX) • Non trivial extraction of knowledge

Algorithmic Trading or Quantitative Investment

• Trading algorithm

• Mathematics: Fibonacci, Chebysheb, Markov and etc.

• Data Mining

• Trading automatically

• Programming language: MQL, Java, C#, LUA, C++ and etc.

• No psychology

• Speed and robustness

• Deterministic

• Note: in this case it’s long term rather than HFT

Page 5: Introduction to FX Data Mining - WordPress.com · Data Mining and Machine Learning • Data Mining • Massive amounts of data (We have it in FX) • Non trivial extraction of knowledge

Algorithmic FX Trading and Data Mining

• Historical Data

• GIGO – Garbage In Garbage Out

• Broker or Yahoo Finance?

• Programming skills and continuous debugging

• Creating ,implementing and testing (Currently done manually).

• Trial and Error – Explore!

Page 6: Introduction to FX Data Mining - WordPress.com · Data Mining and Machine Learning • Data Mining • Massive amounts of data (We have it in FX) • Non trivial extraction of knowledge

WEKA – Waikato Environment for Knowledge Analysis

• Open Source Data Mining framework

• University of Waikato, Hamilton, New Zealand

• Provides

• Implementation of Machine Learning algorithms

• Data preprocessing filters

• Data visualization

• Software

• http://www.cs.waikato.ac.nz/ml/weka/

• Book

• Data Mining: Practical Machine Learning Tools and Techniques, Third Edition (The Morgan Kaufmann Series in Data Management Systems) by Ian H. Witten et al.

• http://amzn.com/0123748569

Page 7: Introduction to FX Data Mining - WordPress.com · Data Mining and Machine Learning • Data Mining • Massive amounts of data (We have it in FX) • Non trivial extraction of knowledge

Loading numerical data to WEKA

Page 8: Introduction to FX Data Mining - WordPress.com · Data Mining and Machine Learning • Data Mining • Massive amounts of data (We have it in FX) • Non trivial extraction of knowledge

Numerical visualization in WEKA

Page 9: Introduction to FX Data Mining - WordPress.com · Data Mining and Machine Learning • Data Mining • Massive amounts of data (We have it in FX) • Non trivial extraction of knowledge

Predicting Close Price with Random Forest

Page 10: Introduction to FX Data Mining - WordPress.com · Data Mining and Machine Learning • Data Mining • Massive amounts of data (We have it in FX) • Non trivial extraction of knowledge

Loading nominal data to WEKA

Page 11: Introduction to FX Data Mining - WordPress.com · Data Mining and Machine Learning • Data Mining • Massive amounts of data (We have it in FX) • Non trivial extraction of knowledge

Nominal visualization in WEKA

Page 12: Introduction to FX Data Mining - WordPress.com · Data Mining and Machine Learning • Data Mining • Massive amounts of data (We have it in FX) • Non trivial extraction of knowledge

Clustering entry points with Simple K Means

Page 13: Introduction to FX Data Mining - WordPress.com · Data Mining and Machine Learning • Data Mining • Massive amounts of data (We have it in FX) • Non trivial extraction of knowledge

Summary

• FX trading has infinite number of trading systems

• Data Mining can help us in creating unique trading models

• Tools and data are available

• Good luck with the mining!

Profit

FX

Data Mining

Historical Data

Algorithmic Trading

Page 14: Introduction to FX Data Mining - WordPress.com · Data Mining and Machine Learning • Data Mining • Massive amounts of data (We have it in FX) • Non trivial extraction of knowledge

That’s all folks!Algonell – Scientific FX Trading

www.algonell.com