LondonR 18 th September 2012 R TRAINING, CONSULTING & APPLICATION DEVELOPMENT SPONSORED BY.

Slides:



Advertisements
Similar presentations
The Important Thing About By. The Important Thing About ******** The important thing about ***** is *****. It is true s/he can *****, *****, and *****.
Advertisements

Part 2 1A Building Automation Monthly Course, Can be freely distributed as long as original authorship is acknowledged.
A real-time adaptive trading system using Genetic Programming QF5205 : Topics in Quantitative Finance Donny Lee Nadim Mouchonnet.
Reversible Computation - RC 2009 A Satellite Workshop of ETAPS 2009 March 22nd,2009 York M.Schellekens,D.Early,E.Popovici,and D.Vasudevan(p)‏ Centre for.
Dependence Precedence. Precedence & Dependence Can we execute a 1000 line program with 1000 processors in one step? What are the issues to deal with in.
Optimizing single thread performance Dependence Loop transformations.
2013 Kickoff Robot Design and Construction Tips Scott McEwen September 14, 2013.
1 Section 1.10 Solving Equations. 2 Three Types of Equations 1._____________________: True only for certain values of the variable. 2.____________________:
12.1 Simple Harmonic Motion Date, Section, Pages, etc. Mr. Richter.
A) 80 b) 53 c) 13 d) x 2 = : 10 = 3, x 3 = 309.
National Commission for Academic Accreditation & Assessment Preparation for Developmental Reviews.
How does Microsoft Excel solver deal with nonlinear problems – A simple example 劉亮志.
Calypso Program Overview
Oracle’s BASEL II Solution Bucuresti 24 th February 2004 Pal Ribarics Oracle Financial Services Consulting, EU Enlargement Countries Solution Team.
Thomas Benner Brandon Kilbury Phillip C. McKee Justin Mintz Jason Ryan RIT MSD II FINAL REVIEW ESTAR WIDE FORMAT SHIPPING CONTAINER.
Rotation about a fixed axis
System of Equations Substitution EliminationGraphing Q $100 Q $200 Q $300 Q $400 Q $500 Q $100 Q $200 Q $300 Q $400 Q $500 Final Jeopardy Jeopardy Real.
The Disposition effect and Underreaction to news Abdullah Al-Ashi Jungha Woo Muna Albasman Talha Yasin 1.
The FIX Protocol as an Effective Solution for Algorithmic Trading Kevin Houstoun, Co-chair FPL Global Technical Committee, Consultant to HSBC.
Dehydration Monitor Team 2 Kevan Chao Brandon Clark Alexandra Deal Ian Gunn Samaria Mitchell Dan Schlegel.
In this section, we will investigate indeterminate forms and an new technique for calculating limits of such expressions.
Algebra II 7-4 Notes. Inverses  In section 2-1 we learned that a relation is a mapping of input values onto output values. An _______ __________ maps.
Current and Future Applications of the Generic Statistical Business Process Model at Statistics Canada Laurie Reedman and Claude Julien May 5, 2010.
Income Inequality Overview Income Distribution Over Time.
Copyright © 1997 – 2014 Curt Hill Concurrent Execution of Programs An Overview.
Training begins in… 15:00 minutes Training begins in… 14:00 minutes.
Dot Products Objectives of this Section Find the Dot Product of Two Vectors Find the Angle Between Two Vectors Determine Whether Two Vectors and Parallel.
The New Zealand Association of Ruminant Nutritionists Brief overview for NZFMA meeting, 18 July 2012 Dr Julian Waters
Equity Market Environment Technology IPO Offerings: September 1, September 21, 2001 (1) IPO activity is drastically down across all sectors of technology.
In this section, we will investigate the idea of the limit of a function and what it means to say a function is or is not continuous.
Analysing Indexes SQLBits 6 th October 2007 © Colin Leversuch-Roberts Kelem Consulting Limited September 2007.
A Breakthrough… Time Machine Evidence. Overview… VISIT TODAYVISIT TODAYVISIT.
50 SHADES OF GREEN 50 Ideas to SHIFT your business into high gear! Barb Arnold, Senior Director and Kelly Wentworth, Ex. Home Consultant.
PZ03BX Programming Language design and Implementation -4th Edition Copyright©Prentice Hall, PZ03BX - Recursive descent parsing Programming Language.
THE EXPONENTIAL GARCH MODEL. To allow for asymmetric effects between positive and negative asset returns, he considers the weighted innovation where θ.
Uniform Problem A subway train on the Red Line arrives every 8 minutes during rush hour. We are interested in the length of time a commuter must wait.
Team Vertex Jimmy Fifield Nick Marino. Graph Coloring What is the minimum number of colors needed to color every vertex so that no neighboring vertexes.
Scenario File  Every solution has Scenario file with MyScenario class derived from Scenario class defined in the API.Engine  The Run button calls MyScenario.Run()
Dealing With the Differences in Hurricane Models Catastrophe Risk Management Seminar October 2002 Will Gardner FIAA.
EXAMPLE 5 Change from intercept form to standard form Write y = – 2 (x + 5) (x – 8) in standard form. y = – 2 (x + 5) (x – 8) Write original function.
Change from intercept form to standard form
ONETICK ® Accelerating Quant Research and Trading Principal Component Analysis & Multi-Factor Modeling Tests with OneTick & R Historical & Real-Time 7.
Written Conversation Directions:  Write for two whole minutes to answer both questions. 1. From what culture or part of the world does this piece of art.
Chapter 2 The Optimal Supplier. The Initial Supplier Survey First, list all possible suppliers Next, trim the list by establishing a set of criteria –
Ch. 1 – PREREQUISITES FOR CALCULUS
Sullivan Algebra and Trigonometry: Section 10.5
Using a Model for Organisation Diagnosis
Section 10 – Module 54 – Total Product & Marginal Product
Process capability in JMP 12 –A new look
Jess Architecture Diagram WORKING MEMORY INFERENCE ENGINE EXECUTION ENGINE PATTERN MATCHER RULE BASE Here you can see how all the parts fit.
ريكاوري (بازگشت به حالت اوليه)
Mass Casualty Incident Plan Training
Think of a word that best describes Delaunay’s work.
Anne Howard Training and Consulting
Function Notation “f of x” Input = x Output = f(x) = y.
Section 1.1 Functions and Change
KS2 Questions types KS2 need exposure to..
قوانين برگزاري مناقصات و آيين نامه مالي و معاملاتي دانشگاه علوم پزشكي و خدمات بهداشتي ،درماني تهران
Warm-up ~ Happy Wednesday
امتحانات میں شامل سوالات کے برے ،اچھے اور بہترین نمونے
True or False: Given A(-4, 8), the image after a translation of (x – 7, y + 6) is A’(-11, 14). Problem of the Day.
Solving Linear Equations by Graphing
Limits Review (Sections 10.1 – 10.3) Pre-Calculus.
Outreach & Communications Committee Task Force Update
Product and Composition of Limits
Computer Graphics Matrix Hierarchies / Animation
Risk Assessment: an example
Intraday momentum trading
Empirical Distributions
PZ03BX - Recursive descent parsing
Presentation transcript:

LondonR 18 th September 2012 R TRAINING, CONSULTING & APPLICATION DEVELOPMENT SPONSORED BY

From Back-test to Trade using R Parallelization in OneTick

What the presentation shows EURJPY FX tick data Take a small section of historic tick data Look at rugarch analyses Ability to use parallelisation effectively How? 5 minute architectural overview of OneTick Questions around tick data management Q & A?

OneTick

Deal with idiosyncrasies of tick data > setClass("TK", representation="POSIXct") > TK <- function(x)new("TK", as.POSIXct(x, format="%Y%m%d %H:%M:%OS")) > setOldClass("TK", S4Class="TK", where=.GlobalEnv) > > as.TK <- function(from)TK(as.POSIXct(from, format="%Y%m%d %H:%M:%OS", tz="GMT")) > setAs("character", "TK", as.TK) > setAs("TK", "POSIXct", function(from)as.POSIXct(as.numeric(from), origin=" ", tz="GMT")) [1] "coerce<-" > as.TK <- function(from)TK(as.POSIXct(from, format="%Y%m%d %H:%M:%OS", tz="GMT")) > setAs("character", "TK", as.TK) > setAs("TK", "POSIXct", function(from)as.POSIXct(as.numeric(from), origin=" ", tz="GMT")) [1] "coerce<-" > print.TK <- function(x,...)print(format(as(x,"POSIXct"), format="%Y%m%d %H:%M:%OS3",...)) > setGeneric("print.TK", print.TK) [1] "print.TK" > setMethod("show", signature(object="TK"), function(object)print(format(object, format="%Y%m%d %H:%M:%OS3"))) [1] "show"

perform (arbitrarily) garch ####### require(rugarch) spec = ugarchspec() ## Assume that the points are distributed fit = ugarchfit(data = diff(EURJPY[select,3]), spec = spec) plot(fit,which="all") # return just to the rate data fit = ugarchfit(data = EURJPY[select,3], spec = spec) plot(fit,which="all") forc = ugarchforecast(fit, n.ahead=20) plot(forc, which="all")

Look for rolling values ctrl = list(rho = 1, delta = 1e-9, outer.iter = 100, tol = 1e-7) spec = ugarchspec(variance.model = list(model = "eGARCH"), distribution.model = "jsu") bktest <- ugarchroll(spec, data = EURJPY[select,3], n.ahead = 1, # parallel = TRUE, parallel.control = list(pkg = c("snowfall"), cores = 4), forecast.length = 100, refit.every = 25, refit.window = "recursive", solver = "solnp", fit.control = list(), solver.control = ctrl, calculate.VaR = TRUE, VaR.alpha = c(0.01, 0.025, 0.05)) plot(bktest, which="all")

Look for rolling values ## BID=BID_PRICE,ASK=ASK_PRICE len<- length(BID) mu=NA alpha1=NA bktest <- NA if(len>110){ tryCatch({bktest <- ugarchroll(spec, data = BID, n.ahead = 1, forecast.length = 100, refit.every = 25, refit.window = "recursive", parallel = TRUE, parallel.control = list(pkg = "snowfall", cores = 4), solver = "solnp", fit.control = list(), solver.control = ctrl, calculate.VaR = TRUE, VaR.alpha = c(0.01, 0.025, 0.05)) error=function(e)cat("Error\n")) } ## OneTick outputs ## MU=mu,ALPHA1=alpha1, LEN=len