High-Frequency Data Modelling with R software



Similar documents
Are High Frequency Traders Prudent and Temperate?

ECON 424/CFRM 462 Introduction to Computational Finance and Financial Econometrics

Working with xts and quantmod

Find the Hidden Signal in Market Data Noise

Programming Languages & Tools

Financial Risk Models in R: Factor Models for Asset Returns. Workshop Overview

What is R? R s Advantages R s Disadvantages Installing and Maintaining R Ways of Running R An Example Program Where to Learn More

Exploratory Data Analysis in Finance Using PerformanceAnalytics

MATLAB as an Automated Execution System

Introduction to RStudio

GETTING STARTED WITH R AND DATA ANALYSIS

Big Data Analytics in R

SubCue Analyzer Software - Introduction

Notes on computer programmes for statistical analysis

Training Workshops [RERUN] Investment Analytics & Data Visualization with R

Introduction to R software for statistical computing

Software for time series visualization

Investment Statistics: Definitions & Formulas

TOMORROW'S TRADING TECHNOLOGY. 100% automated Fibonacci support and resistance levels that you can count on every single trading day in an instant.

Statistical Distributions in Astronomy

Time Series Analysis AMS 316

Numerical Analysis. Professor Donna Calhoun. Fall 2013 Math 465/565. Office : MG241A Office Hours : Wednesday 10:00-12:00 and 1:00-3:00

Time Series Analysis of Aviation Data

R Language Fundamentals

Lecture 9: Data Mining, Data Analytics and Big Data

A Short Guide to R with RStudio

Real Time Market Data and Trade Execution with R

Algorithmic Trading with MATLAB Martin Demel, Application Engineer

THE CYCLE TRADING PATTERN MANUAL

R Tools Evaluation. A review by Global BI / Local & Regional Capabilities. Telefónica CCDO May 2015

A Survey of Image Processing Tools Package in Medical Imaging

R-evolution in Time Series Analysis Software Applied on R-omanian Capital Market

G563 Quantitative Paleontology. SQL databases. An introduction. Department of Geological Sciences Indiana University. (c) 2012, P.

THE COMPARISON OF DATA MINING TOOLS

How To Build A Trading Engine In A Microsoft Microsoft Matlab (A Trading Engine)

Graphing Made Easy for Project Management

Karyn Ruiz-Cordell, MA, PhD Shunda Irons-Brown, PhD, MBA, CHCP Tamar Sapir, PhD

WEI CHEN. IT-enabled Innovation, Online Community, Open-Source Software, Startup Angel Funding, Interactive Marketing, SaaS Model

R: A Free Software Project in Statistical Computing

Integrating a Big Data Platform into Government:

An Introduction to the Use of R for Clinical Research

OANDA FXTrade Platform: User Interface Reference Manual

Sigma Capital Trading

Model Calibration with Open Source Software: R and Friends. Dr. Heiko Frings Mathematical Risk Consulting

The Not Quite R (NQR) Project: Explorations Using the Parrot Virtual Machine

STATISTICS and PROBABILITY Definition Statistics is the science and practice of developing human knowledge through the use of empirical data

NUMERICAL METHODS TOPICS FOR RESEARCH PAPERS

OPC COMMUNICATION IN REAL TIME

How I Trade Profitably Every Single Month without Fail

What is Data Analysis. Kerala School of MathematicsCourse in Statistics for Scientis. Introduction to Data Analysis. Steps in a Statistical Study

Computational Statistics: A Crash Course using R for Biologists (and Their Friends)

Understanding Data: A Comparison of Information Visualization Tools and Techniques

Data Science and Business Analytics Certificate Data Science and Business Intelligence Certificate

ML2VR Providing MATLAB Users an Easy Transition to Virtual Reality and Immersive Interactivity

SAS and OSU Data Mining Certificate and Marketing Analytics Certificate Program

RUSRR048 COURSE CATALOG DETAIL REPORT Page 1 of 6 11/11/ :33:48. QMS 102 Course ID

Session 15 OF, Unpacking the Actuary's Technical Toolkit. Moderator: Albert Jeffrey Moore, ASA, MAAA

MIS 510: Cyber Analytics Project

POL 204b: Research and Methodology

Predictive Analytics & Predictive Modeling December 2 3, Catherine Snyder Supervisor US Dealer Audit, Audit Services General Motors Company

Streaming Data, Concurrency And R

Computing, technology & Data Analysis in the Graduate Curriculum. Duncan Temple Lang UC Davis Dept. of Statistics

Sterling Technologies Inc. Sterling Trader Pro

SOLUTION BRIEF. TIBCO StreamBase for Algorithmic Trading

R: A Free Software Project in Statistical Computing

ANALYTICS A FUTURE IN ANALYTICS

KnowledgeSEEKER POWERFUL SEGMENTATION, STRATEGY DESIGN AND VISUALIZATION SOFTWARE

1 Topic. 2 Scilab. 2.1 What is Scilab?

PLS 801: Quantitative Techniques in Political Science

Business Strategy: Strategic Models

Today's Topics. COMP 388/441: Human-Computer Interaction. simple 2D plotting. 1D techniques. Ancient plotting techniques. Data Visualization:

AHP Based Comparison of open-source BPM Systems

Step-by-Step Guide to Bi-Parental Linkage Mapping WHITE PAPER

We can display an object on a monitor screen in three different computer-model forms: Wireframe model Surface Model Solid model

NEXGEN DEMO TRADING & EDUCATIONAL PLAN SIMPLIFIED

Algorithmic Trading Session 6 Trade Signal Generation IV Momentum Strategies. Oliver Steinki, CFA, FRM

Introduction to databases and research at the Finance Department. Mikko Niemenmaa Chydenia G2.10

Controller Design in Frequency Domain

Big Data Executive Survey

TeleTrader Toolbox for MATLAB

An Introduction to. Metrics. used during. Software Development

Comparative Politics and International Relations. University of South Carolina, Columbia, SC. M.A., Political Science, 2015

Transcription:

High-Frequency Data Modelling with R software Piotr Wójcik University of Warsaw, Faculty of Economic Sciences QFRG-Eurex Conference 2012-12-05 Piotr Wójcik (WNE UW) QFRG-Eurex Conference 1 / 28

What is R? freely available language and environment for statistical computing and graphics (very similar to S in S-Plus), a well developed intuitive, flexible and convenient programming language, initially written by Ross Ihaka and Robert Gentleman at the Department of Statistics of the University of Auckland in New Zealand, current R is the result of a collaborative effort with contributions from all over the world, Piotr Wójcik (WNE UW) QFRG-Eurex Conference 2 / 28

R is hot! Piotr Wójcik (WNE UW) QFRG-Eurex Conference 3 / 28

Good analyst/trader = good programer A good analyst/trader has to be a good programmer!!! The choice includes a number of alternatives (used in financial modelling): R, SAS, Matlab, Mathematica, S-Plus, C++, Python, others. Piotr Wójcik (WNE UW) QFRG-Eurex Conference 4 / 28

Why use R in high-frequency data modelling? (1) open-source, free, Piotr Wójcik (WNE UW) QFRG-Eurex Conference 5 / 28

Why use R in high-frequency data modelling? (2) good to know it, universal, including many additional packages not only for statistics or quantitative finance, Piotr Wójcik (WNE UW) QFRG-Eurex Conference 6 / 28

Why use R in high-frequency data modelling? (3) at least 10 years ahead of commercial packages, A key benefit of R is that it provides nearinstant availability of new and experimental methods created by its user base without waiting for the development/release cycle of commercial software. SAS recognizes the value of R to our customer base... Michael Gilliland, Product Marketing Manager SAS Institute, Inc. There are very few things that SAS or SPSS will do that R cannot, while R can do a wide range of things that the others cannot. Robert A. Muenchen, author, R for SAS and SPSS Users Piotr Wójcik (WNE UW) QFRG-Eurex Conference 7 / 28

Why use R in high-frequency data modelling? (4) (world-) wide R community easy to learn get help online. software # of blogs* R 365 SAS 40 Stata 8 Others 0-3 * in March 2012 Source: http://r4stats.com/articles/popularity/ R is becoming the lingua franca of analytic statistics. Piotr Wójcik (WNE UW) QFRG-Eurex Conference 8 / 28

Discussion lists subscribers Similar relations hold for discussion lists subscribers, stackoverflow discussions... Piotr Wójcik (WNE UW) QFRG-Eurex Conference 9 / 28

R strengths data manipulation and management, statistics, graphics, programming language, user friendly interface RStudio, thousands of available packages with specialized functions, active user community (forums, discussion groups), Piotr Wójcik (WNE UW) QFRG-Eurex Conference 10 / 28

R weaknesses standard interface not very user friendly, lack of commercial support, usually several possible ways to do the same, slower than programming languages (like C++, Perl, Java). Piotr Wójcik (WNE UW) QFRG-Eurex Conference 11 / 28

Where to find R? http://cran.r-project.org/ http://www.r-project.org/ http://www.rstudio.com/ Piotr Wójcik (WNE UW) QFRG-Eurex Conference 12 / 28

R conference on finance www.rinfinance.com Piotr Wójcik (WNE UW) QFRG-Eurex Conference 13 / 28

R blogs www.r-statistics.com Piotr Wójcik (WNE UW) QFRG-Eurex Conference 14 / 28

R blogs http://www.r-bloggers.com Piotr Wójcik (WNE UW) QFRG-Eurex Conference 15 / 28

R blogs blog.fosstrading.com Piotr Wójcik (WNE UW) QFRG-Eurex Conference 16 / 28

Milktrader blo www.milktrader.net Piotr Wójcik (WNE UW) QFRG-Eurex Conference 17 / 28

Rseek www.rseek.org Piotr Wójcik (WNE UW) QFRG-Eurex Conference 18 / 28

Data types useful for high-frequency time series data type package description ts base regularly spaced time series mts base regularly spaced multipletime series zoo zoo regular/irregular and arbitrary time stamp classes xts xts an extension of the zoo class High-frequency begins when indexing only by date alone becomes insufficient (intra-day, tick data). A time series object in R includes a data matrix and a vector of associated date/time stamps. Classes for high-frequency time series: low frequency high frequency time series zoo xts time index Date POSIXlt/POSIXct Piotr Wójcik (WNE UW) QFRG-Eurex Conference 19 / 28

Useful packages quantmod getting the historical and (delayed) real-time data automatically, many TA tools, easy analyses of OHLC type data, TTR, catools efficient functions for rolling analyses, performanceanalytics measures of strategy performance (eg. Sharpe Ratio, MDD, Calmar Ratio, Sortino Ratio, Upside Potential Ratio, Treynor Ratio), realized package for realized variance analyses, IBrokers, RTAQ direct connection to commercial HFD providers, and many many others... Piotr Wójcik (WNE UW) QFRG-Eurex Conference 20 / 28

Sample plot Piotr Wójcik (WNE UW) QFRG-Eurex Conference 21 / 28

Strategy based on a single moving average Piotr Wójcik (WNE UW) QFRG-Eurex Conference 22 / 28

Strategy based on two intersecting moving averages Piotr Wójcik (WNE UW) QFRG-Eurex Conference 23 / 28

Strategy based on Bollinger Bands Piotr Wójcik (WNE UW) QFRG-Eurex Conference 24 / 28

Strategy based on MACD oscillator Piotr Wójcik (WNE UW) QFRG-Eurex Conference 25 / 28

Strategy based on Relative Strength Index Piotr Wójcik (WNE UW) QFRG-Eurex Conference 26 / 28

Strategy based on a Hurst expnent Piotr Wójcik (WNE UW) QFRG-Eurex Conference 27 / 28

Thank you for your attention! Piotr Wójcik (WNE UW) QFRG-Eurex Conference 28 / 28