Quantitative Trading Strategy based on Time Series Technical Analysis Group Member: Zhao Xia Jun Lorraine Wang Lu Xiao Zhang Le Yu.

Slides:



Advertisements
Similar presentations
An Example of Quant’s Task in Croatian Banking Industry
Advertisements

A real-time adaptive trading system using Genetic Programming QF5205 : Topics in Quantitative Finance Donny Lee Nadim Mouchonnet.
Foundations of Technical Analysis: Computational Algorithms, Statistical Inference, and Empirical Implementation Written by Andrew W.Lo, Harry Mamaysky,
Spreadsheet Modeling & Decision Analysis
Saeed Ebrahimijam Spring 2013 Faculty of Business and Economics Department of Banking and Finance Doğu Akdeniz Üniversitesi FINA417.
LECTURE 3 Introduction to Linear Regression and Correlation Analysis
Moving Averages Ft(1) is average of last m observations
Duration and Yield Changes
LOGO Time Series technical analysis via new fast estimation methods Yan Jungang A E Huang Zhaokun A U Bai Ning A E.
Chapter 12 - Forecasting Forecasting is important in the business decision-making process in which a current choice or decision has future implications:
Beyond the Fundamentals Technical Analysis. Technical Analysis vs. Fundamental Analysis Fundamental analysis focuses on economic/financial theory and.
Simple Linear Regression
Pole Zero Speech Models Speech is nonstationary. It can approximately be considered stationary over short intervals (20-40 ms). Over thisinterval the source.
1 Spreadsheet Modeling & Decision Analysis: A Practical Introduction to Management Science, 3e by Cliff Ragsdale.
The Asset Market, Money, and Prices
PREDICTABILITY OF NON- LINEAR TRADING RULES IN THE US STOCK MARKET CHONG & LAM 2010.
Chapter 3 Forecasting McGraw-Hill/Irwin
MARKET IN TRAFFIC LIGHTS Designed for the next Users Private Investors Professional investors in Broker companies Run mode: Real Time combined with the.
Part II – TIME SERIES ANALYSIS C2 Simple Time Series Methods & Moving Averages © Angel A. Juan & Carles Serrat - UPC 2007/2008.
Forecasting McGraw-Hill/Irwin Copyright © 2012 by The McGraw-Hill Companies, Inc. All rights reserved.
Finance 30210: Managerial Economics Demand Forecasting.
Lecture 17 Interaction Plots Simple Linear Regression (Chapter ) Homework 4 due Friday. JMP instructions for question are actually for.
FINANCIAL ECONOMETRICS FALL 2000 Rob Engle. OUTLINE DATA MOMENTS FORECASTING RETURNS EFFICIENT MARKET HYPOTHESIS FOR THE ECONOMETRICIAN TRADING RULES.
Stat 112: Lecture 9 Notes Homework 3: Due next Thursday
BA 427 – Assurance and Attestation Services
Applied Business Forecasting and Planning
Monté Carlo Simulation MGS 3100 – Chapter 9. Simulation Defined A computer-based model used to run experiments on a real system.  Typically done on a.
With technical analysis, timing is the critical success factor. Technical Analysis serves to determine "when to buy or when to sell" shares. It is concerned.
The Stock Market Forecasting and Risk Management System using Genetic Programming Li Wang Ross School of Business Ann Arbor, MI
1 Price Forecasting Fundamental and Technical Analysis.
Saeed Ebrahimijam SPRING Faculty of Business and Economics Department of Banking and Finance Doğu Akdeniz Üniversitesi FINA417.
By Benziger Alice Priyanka Snehal Khair Prakash SuseendranVigeendharan Tiwari Ashutosh.
1 NASA OSMA SAS02 Software Reliability Modeling: Traditional and Non-Parametric Dolores R. Wallace Victor Laing SRS Information Services Software Assurance.
GROUP 5. Outline  Weekly Group Update  Update on Table 6 (2007 paper)  Update on Table 2 (2007 paper)  Plans for the 2008 paper.
Project Sales Or Production Levels Using The Rolling Average © Dale R. Geiger
CH5 Overview 1. Agenda 1.History 2.Motivation 3.Cointegration 4.Applying the model 5.A trading strategy 6.Road map for strategy design 2.
Single A Capital Management
The Power of Moving Averages in Financial Markets By: Michael Viscuso.
Business Forecasting Used to try to predict the future Uses two main methods: Qualitative – seeking opinions on which to base decision making – Consumer.
GROUP 5. Outline  Weekly Group Update  Information gathered this week  Current road blocks  Goals for next week.
The Supply Curve and the Behavior of Firms
1 Spreadsheet Modeling & Decision Analysis: A Practical Introduction to Management Science, 3e by Cliff Ragsdale.
Sponsor: Dr. K.C. Chang Tony Chen Ehsan Esmaeilzadeh Ali Jarvandi Ning Lin Ryan O’Neil Spring 2010.
Correlated and Uncorrelated Signals Problem: we have two signals and. How “close” are they to each other? Example: in a radar (or sonar) we transmit a.
Various topics Petter Mostad Overview Epidemiology Study types / data types Econometrics Time series data More about sampling –Estimation.
Business Statistics for Managerial Decision Farideh Dehkordi-Vakil.
Time Series Analysis and Forecasting
11/23/2015Slide 1 Using a combination of tables and plots from SPSS plus spreadsheets from Excel, we will show the linkage between correlation and linear.
Copyright © 2011 Pearson Education, Inc. Time Series Chapter 27.
Forecasting Implied Volatility Alpha Asset Management Roger Kramer Brian Storey Matt Whalley Kristen Zolla.
Autoregressive (AR) Spectral Estimation
1 BABS 502 Moving Averages, Decomposition and Exponential Smoothing Revised March 14, 2010.
26134 Business Statistics Week 4 Tutorial Simple Linear Regression Key concepts in this tutorial are listed below 1. Detecting.
Comments from Instructor: A detailed yet analytical paper, which puts class materials into good application, and takes one step further, if simple, to.
Managerial Decision Modeling 6 th edition Cliff T. Ragsdale.
Forecast 2 Linear trend Forecast error Seasonal demand.
F5 Performance Management. 2 Section C: Budgeting Designed to give you knowledge and application of: C1. Objectives C2. Budgetary systems C3. Types of.
Occupy Wall St Review If you placed your trade using 1 mini lot (this equals $1 profit for every pip), and your target for that trade is 30 pips, you would.
Algebra 1 Vocabulary Trivia Game Rules Choose a topic and monetary amount of your choice. The higher the amount, the more challenging the question! The.
 Analysis of statistics generated by market activity such as past price and volume to come up with reasonable outcome in future using charts as a primary.
Forecasts.
Market-Risk Measurement
Forecasting Methods Dr. T. T. Kachwala.
Investment Management
Project Sales or Production Levels Using the Rolling Average
Li Wang Ross School of Business Ann Arbor, MI 48105
UNIT-8 INVERTERS 11/27/2018.
Alix Spruce, Nathan Moore,
Regression Forecasting and Model Building
Overview & backtesting
Presentation transcript:

Quantitative Trading Strategy based on Time Series Technical Analysis Group Member: Zhao Xia Jun Lorraine Wang Lu Xiao Zhang Le Yu

What’s new from the paper Michel Fliess. Cédric Join Time Series Technical Analysis via New Fast Estimation Methods: A Preliminary Study in Mathematical Finance. ( 2008, Coventry, United Kingdom.)

What’s new from the paper  New fast estimation methods are applied to “Model-free” setting  Via repeated identifications of low order linear difference equations on sliding short time windows  Applying signal processing technique on finance

What’s new from our project  As the paper did not discuss any trading strategy, we come up with all the strategies by ourselves based on the techniques from the paper.

Tools and Packages  Matlab 2010  Signal Processing Toolbox  This toolbox is included in Matlab starting from version 2010

Data  Data: EUR/USD & GBP/USD & AUD/JPY Exchange Rates  Source:: eSignal software  Frequency: One Hour Interval  In-Sample: Major analysis are done with data from 2009 quarter 4 to 2010 quarter 1.  Out-of-Sample: The strategies are back tested on the following 1 year data, i.e quarter 2 to 2011 quarter 1.

Inputs, outputs and measurement  Trading decisions are made at the end of each hour.  Decision related inputs are only close price of that hour (as well as past prices).  The most important measurement of performance is the cumulative value of 1 dollar after 1 year.  Sharpe Ratio, maximum drawdown, and percentage correct are also output.  Assume no leverage, no transaction cost, and the deposit for a short position is its price.

Briefly about our work  Although the paper applies signal processing techniques on finance, it provides no trading strategies.  We aim to focus on these new techniques and develop strategies that may work under indicators from the new techniques.  We may use all the techniques, or part of, mentioned in the paper, in our strategies.

Strategies  Use filtering technique only (1 strategy)  Use filtering and z-transform (2 strategies)  Use moving average on error terms (1 strategy)

Strategy 1: Filtered Price Indicator  Blue line: market prices  Green line: filtered prices  Strategy 1 is to base trading decisions on the difference between blue and green lines at each period.

Strategy 1: Filtered Price Indicator  We should use information up to each period. As the filtered price would be different if we provide it with future prices. (see period 1874)

Strategy 1: Filtered Price Indicator  The author of the paper believes the average of the difference (errors) between filtered prices and market prices approaches to zero. So a large departure of market price and filtered price is unlikely.  A simple strategy:  Buy if filtered price (of this period) is much higher than close price (of this period);  Sell if filtered price (of this period) is much lower than close price (of this period).  Refer to “qt_Strategy_FilteredPriceIndicator.m”

Strategy 1: Filtered Price Indicator  Result:

Strategy 1: Filtered Price Indicator

Strategy 2: Simple Prediction  The paper uses z-transform and non-linear system to get coefficients of the equation on filtered prices:  When applying these coefficients on the market prices, we can get predictions of future prices.  Refer to: “qt_GetSinglePrediction.m”

Strategy 2: Simple Prediction  Blue line: Market Prices;  Green line: Filtered Prices  Red line: Forecasted one-period-after price

Strategy 2: Simple Prediction  Buy when current price is lower than predicted future price  Volume depends on the prediction length (i.e. number of prediction made)  E.g. volume=1 when prediction length=1, i.e. predict only for next time bar  E.g. volume=2 when prediction length=2 and both predicted prices for next 2 time bars are above current price  Sell when current price is higher than predicted future price  Close the open position when the prediction shows a change of price direction  Refer to: “qt_Strategy_SimplePrediction.m”

Strategy 2: Simple Prediction  Result

Strategy 2: Simple Prediction

Strategy 3: Simple Mean Reverting  The difference between market price and filtered price is believed to be around zero. So we can play mean reversion on the spread of filtered price and market price.  However, this spread is not tradable.  We develop our strategy in this way:  If the spread is too large, consider it an opportunity first;  Examine whether the change in filtered price would likely offset the significance of the spread;  If not so, enter into new position;  We can achieve it with prediction coefficients (same as we used in strategy 2).

Strategy 3: Simple Mean Reverting  There will be at most 4 threshold in this strategy. Running optimization for these threshold is extremely time-consuming.  We did only for EUR/USD pair and apply the same thresholds on the other two pairs  Refer to “qt_Strategy_SimpleMeanReverting.m”

Strategy 3: Simple Mean Reverting  Result:

Strategy 3: Simple Mean Reverting

Strategy 4: Moving Average  Moving averaging is the main beautiful result of the paper;  It is suggested by the author of the paper that moving average of errors goes to zero in time:

Strategy 4: Moving Average  In the paper, on daily USD/EUR series, with window size of 100, this model can achieve >80% accuracy in trend prediction.

Strategy by moving average  However, in our work, moving average doesn't go to zero always.  moving average of error terms under different window sizes at Strategy 4: Moving Average

Strategy by moving average  At the same time, the prediction power of moving average seems to be "only better than bet" in our half- year sample Strategy 4: Moving Average

Strategy by moving average  Forecast Accuracy – if moving average can predict future price (based on AUD/JPY data from 2009Q4 to 2010Q1) Strategy 4: Moving Average

Strategy by moving average  Forecast Accuracy – if moving average can predict future filtered price (based on AUD/JPY data from 2009Q4 to 2010Q1) Strategy 4: Moving Average

 Even the result of the paper can be remade here, it only captures the difference of price and trend. This spread is not tradable. (even the spread narrows as expected, the direction of market price may vary.

Strategy 4: Moving Average  We develop a similar strategy  Simple moving average equally considers new information and n-period past information. The entry of new price and the leave of past information cause same important pulse in moving average.  To avoid complex weighted average, we choose to use two moving average indicators, so that recent information become more important and the leave of one single past price will not affect the indicator too much.

Strategy 4: Moving Average  Buy if both two moving average are below zero  Sell if both two moving average are above zero  Refer to “qt_Strategy_MvAvg.m”

Strategy 4: Moving Average  Result

Strategy 4: Moving Average

Strategy 4: Moving Average – Optimized Parameters

 Fix a=1 in above expression. We run optimization for four parameters: window size of MV1, window size of MV2, order multiplier in FIR, and b in last expression.  Optimization run on 2009Q4 to 2010Q1 data;  Performance result plot for 2010Q2 to 2011Q1.  Due to great amount of computation needed, we run for EUR/USD only at this moment.

Strategy 4: Moving Average – Optimized Parameters 1 year account value EUR/USD (2010Q2 to 2011Q1) window1=4; window2 =40; p=0.75; b=8

Strategy 4: Moving Average – Optimized Parameters 1 year account value AUD/JPY (2010Q2 to 2011Q1) window1=4; window2 =40; p=0.75; b=8

Strategy 4: Moving Average – Optimized Parameters 1 year account value GBP/USD (2010Q2 to 2011Q1) window1=4; window2 =40; p=0.75; b=8

Summary  Mathematics  In this project, we successfully replicated all the mathematical terms described in the paper, including filtered price, z transformation and moving average errors.  Achievement  We developed 4 strategies by applying the mathematical terms as trading indicators.  Impressive return was achieved especially with Strategy 4: moving average of the error terms  Further work  Leverage, commission and slippage can be included in the trading model  Optimization can be applied on many trading parameters