AN INTRODUCTION TO BACKTESTING WITH PYTHON AND PANDAS
|
|
|
- Madeleine Parks
- 10 years ago
- Views:
Transcription
1 AN INTRODUCTION TO BACKTESTING WITH PYTHON AND PANDAS Michael Halls-Moore - QuantStart.com
2 WHAT S THIS TALK ABOUT? A talk of two halves! In the first half we talk about quantitative trading and backtesting from a theoretical point of view. In the second half we show how to use modern Python tools to implement a backtesting environment for a simple trading strategy.
3 QUANTITATIVE TRADING Creates a set of rules for trade order generation and risk management of positions with minimal subsequent manager intervention. Attempts to identify statistically significant and repeatable market behaviour that can be exploited to generate profits. Low-frequency (weekly, daily) through to high-frequency (seconds, milliseconds...) Carried out both at the retail level and at the large quantitative hedge funds.
4 TAXONOMY OF TRADING STRATEGIES Forecasting methods attempt to predict the direction or value of an instrument in subsequent future time periods based on certain historical factors. Mean Reversion trades on the deviation of a spread between two or more instruments. Utilises cointegration tests to ascertain mean reverting behaviour. Momentum or trend following. Trades on the basis of the slow diffusion of information (in direct contrast to Efficient Market Hypothesis). High Frequency Trading or HFT. Specifically referring to exploitation of sub-millisecond market microstructure. FPGAs, Infiniband networks, lots of dirty tricks!
5 WHAT IS BACKTESTING? A simulation designed to test the performance of a set of trading and risk management rules on historical data. Provides quantified performance of a strategy that can be used for comparison with other strategies. Outlines likely capital requirements, trade frequency and risk to a portfolio. Arguably a significant improvement beyond guessing!
6 BACKTESTING PITFALLS Market regime shift - Regulatory change, macroeconomic events, black swans Transaction costs - Unrealistic handling of slippage, market impact and fees Liquidity constraints - Ban of short sales (e.g. finance stocks in 2008) Optimisation Bias - Over-fitting a model too closely to limited data Survivorship Bias - Only using instruments which still exist (incorrect sample) Lookahead Bias - Accidental introduction of future information into past data Interference - Ignoring strategy rules just this once because I know better
7 DIFFERENT TYPES OF BACKTESTER Rapid prototyping Research Many strategies/parameters can be tested quickly. Identifying statistical relationships Vectorised (pandas, MatLab or R). Often unrealistic (inflated) performance Implementation Extensive development and testing time. Full Order Management System (OMS). Often event-driven or CEP. Code-reuse between live implementation and backtesting. More realistic performance.
8 COMPONENTS OF A BACKTESTER Data Handler - An interface to a set of historic or live market data. Strategy - Encapsulates signal generation based on market data. Portfolio - Generates orders and manages of Profit & Loss PnL Execution Handler - Sends orders to broker and receives fills....and many more depending upon complexity
9 PYTHON TOOLS FOR BACKTESTING NumPy/SciPy - Provide vectorised operations, optimisation and linear algebra routines all needed for certain trading strategies. Pandas - Provides the DataFrame, highly useful for data wrangling of time series data. Takes a lot of the work out of pre-processing financial data. Scikit-Learn - Machine Learning library useful for creating regression and classification models, that are used in forecasting strategies. Statsmodels - Statistical library (contains packages similar to R). Highly useful for time series analysis for mean-reversion/momentum detection. IbPy - Pythonic wrapper for Interactive Brokers proprietary market/order API. ZipLine - All-in-one Python backtesting framework powering Quantopian.com.
10 MOVING AVERAGE CROSSOVER The Hello World of quantitative trading! A very basic momentum strategy, but useful for calibrating backtesters. Strategy Rules: - Create two separate simple moving averages (SMA) of a time series with differing lookback periods, e.g. 40 days and 100 days. - If the short moving average exceeds the long moving average then go long - If the long moving average exceeds the short moving average then exit
11 NOW PLEASE SHOW ME SOME PYTHON!
12 OBTAINING FREE FINANCIAL DATA Use the Quandl data service ( $ pip install Quandl Easy to obtain daily financial market data (returns a pandas DataFrame): >>> import datetime >>> import pandas as pd >>> import Quandl >>> ibm = Quandl.get( GOOG/NYSE_IBM ) # Use Google Finance as data source Or with Yahoo Finance: >>> start_date = datetime.datetime(2009,1,1) >>> end_date = datetime.datetime(2014,1,1) >>> amzn = pd.io.data.datareader("amzn", "yahoo", start_date, end_date)
13 CLASS HIERARCHIES Create Strategy and Portfolio class hierarchies Abstract base classes enforce interface for subclasses Strategies and Portfolios can be swapped out easily and are loosely coupled to data and execution modules. Example Strategy abstract base class: from abc import ABCMeta, abstractmethod class Strategy(object): metaclass = def generate_signals(self): raise NotImplementedError("Should implement generate_signals()!")
14 MOVING AVERAGE CROSS IN PYTHON generate_signals creates a signals DataFrame used by the Portfolio class MovingAverageCrossStrategy(Strategy):.. def generate_signals(self): # Create DataFrame and initialise signal series to zero signals = pd.dataframe(index=self.bars.index) signals['signal'] = 0 # Create the short/long simple moving averages signals['short_mavg'] = pd.rolling_mean(bars['adj Close'], self.short_window, min_periods=1) signals['long_mavg'] = pd.rolling_mean(bars['adj Close'], self.long_window, min_periods=1) # When the short SMA exceeds the long SMA, set the signals Series to 1 (else 0) signals['signal'][self.short_window:] = np.where(signals['short_mavg'][self.short_window:] > signals['long_mavg'][self.short_window:], 1, 0) # Take the difference of the signals in order to generate actual trading orders signals['positions'] = signals['signal'].diff() return signals
15 MARKET ON CLOSE PORTFOLIO class MarketOnClosePortfolio(Portfolio):.. def generate_positions(self): # Generate a pandas DataFrame to store quantity held at any bar timeframe positions = pd.dataframe(index=signals.index).fillna(0.0) positions[self.symbol] = 100 * signals['signal'] # Transact 100 shares on a signal return positions def backtest_portfolio(self): # Create a new DataFrame portfolio to store the market value of an open position portfolio = self.positions * self.bars['adj Close'] pos_diff = self.positions.diff() # Create a holdings Series that totals all open position market values # and a cash column that stores remaining cash in account portfolio['holdings'] = (self.positions*self.bars['adj Close']).sum(axis=1) portfolio['cash'] = self.initial_capital - (pos_diff*self.bars['adj Close']).sum(axis=1).cumsum() # Sum up the cash and holdings to create full account equity, then create the percentage returns portfolio['total'] = portfolio['cash'] + portfolio['holdings'] portfolio['returns'] = portfolio['total'].pct_change() return portfolio
16 TYING IT ALL TOGETHER Download the data, create the strategy, backtest the portfolio... if name == " main ": # Obtain daily bars of Amazon from Yahoo Finance # for the period 1st Jan 2009 to 1st Jan 2014 symbol = 'AMZN' bars = DataReader(symbol, "yahoo", datetime.datetime(2009,1,1), datetime.datetime(2014,1,1)) # Create a Moving Average Cross Strategy instance # with short and long moving average windows mac = MovingAverageCrossStrategy(symbol, bars, short_window=40, long_window=100) signals = mac.generate_signals() # Create a portfolio of AMZN, with $100,000 initial capital portfolio = MarketOnClosePortfolio(symbol, bars, signals, initial_capital= ) returns = portfolio.backtest_portfolio() # Plot the performance with Matplotlib..
17 PERFORMANCE What next? - Calculate a Sharpe Ratio - Calculate a Maximum Drawdown - Many other metrics, e.g. - CAGR - Risk/Reward Ratios - Distribution of returns - Trade-level metrics - All very straightforward with pandas
18 IMPROVEMENTS? Multi-symbol portfolios, by adding more columns to a pandas DataFrame. Risk management framework (much more important than signal generation!) True event-driven backtesting helps mitigate lookahead bias Realistic handling of transaction costs - fees, slippage and possible market impact Optimisation routines to find best parameters (be careful of curve-fitting!) GUI via PyQT or other libraries
19 WHERE CAN I FIND OUT MORE? Visit QuantStart to find the complete code and the slides from the talk: - Make sure to investigate these fantastic free tools: - Pandas Scikit-Learn Statsmodels ZipLine Canopy Quandl [email protected],
20 THANK YOU!
Algorithmic Trading Session 1 Introduction. Oliver Steinki, CFA, FRM
Algorithmic Trading Session 1 Introduction Oliver Steinki, CFA, FRM Outline An Introduction to Algorithmic Trading Definition, Research Areas, Relevance and Applications General Trading Overview Goals
Design of an FX trading system using Adaptive Reinforcement Learning
University Finance Seminar 17 March 2006 Design of an FX trading system using Adaptive Reinforcement Learning M A H Dempster Centre for Financial Research Judge Institute of Management University of &
Pattern Recognition and Prediction in Equity Market
Pattern Recognition and Prediction in Equity Market Lang Lang, Kai Wang 1. Introduction In finance, technical analysis is a security analysis discipline used for forecasting the direction of prices through
White Paper Electronic Trading- Algorithmic & High Frequency Trading. PENINSULA STRATEGY, Namir Hamid
White Paper Electronic Trading- Algorithmic & High Frequency Trading PENINSULA STRATEGY, Namir Hamid AUG 2011 Table Of Contents EXECUTIVE SUMMARY...3 Overview... 3 Background... 3 HIGH FREQUENCY ALGORITHMIC
TSL TRADING SYSTEM DESCRIPTION FOREX TRADING SYSTEM
Phone: 1-408-356-1800 Web: www.tradingsystemlab.com TSL TRADING SYSTEM DESCRIPTION FOREX TRADING SYSTEM This document covers all FOREX Trading Systems generated by TSL. The TSL FOREX Trading System is
Stock Market Trends...P1. What Is Automated Trading...P2. Advantages & Disadvantages...P3. Automated Trading Conclusion...P4
I S SUE 1 VOLUME 1 YE AR 2013 Stock Market Trends...P1 What Is Automated Trading...P2 Advantages & Disadvantages...P3 Automated Trading Conclusion...P4 IS S UE 1 V O L UME 1 YEAR 2013 Automated stock trading
PITFALLS IN TIME SERIES ANALYSIS. Cliff Hurvich Stern School, NYU
PITFALLS IN TIME SERIES ANALYSIS Cliff Hurvich Stern School, NYU The t -Test If x 1,..., x n are independent and identically distributed with mean 0, and n is not too small, then t = x 0 s n has a standard
Algorithmic Trading Session 6 Trade Signal Generation IV Momentum Strategies. Oliver Steinki, CFA, FRM
Algorithmic Trading Session 6 Trade Signal Generation IV Momentum Strategies Oliver Steinki, CFA, FRM Outline Introduction What is Momentum? Tests to Discover Momentum Interday Momentum Strategies Intraday
Contents Risk Disclaimer... 3 Introduction... 4 Choosing the Right Broker... 4 The Financial Markets... 5 The Forex Market...
Contents Risk Disclaimer... 3 Introduction... 4 Choosing the Right Broker... 4 The Financial Markets... 5 The Forex Market... 6 Trading methodologies... 7 Developing a trading strategy... 8 Risk Management...
Take it E.A.S.Y.! Dean Malone 4X Los Angeles Group - HotComm January 2007
Take it E.A.S.Y.! Dean Malone 4X Los Angeles Group - HotComm January 2007 Dean Malone Partner of Compass Foreign Exchange, LLC. Co-Founder of Forex Signal Service.com. Previous Senior National for 4X Made
(Part.1) FOUNDATIONS OF RISK MANAGEMENT
(Part.1) FOUNDATIONS OF RISK MANAGEMENT 1 : Risk Taking: A Corporate Governance Perspective Delineating Efficient Portfolios 2: The Standard Capital Asset Pricing Model 1 : Risk : A Helicopter View 2:
Haksun Li [email protected] www.numericalmethod.com MY EXPERIENCE WITH ALGORITHMIC TRADING
Haksun Li [email protected] www.numericalmethod.com MY EXPERIENCE WITH ALGORITHMIC TRADING SPEAKER PROFILE Haksun Li, Numerical Method Inc. Quantitative Trader Quantitative Analyst PhD, Computer
The Merits of Absolute Return Quantitative Investment Strategies
The Merits of Absolute Return Quantitative Investment Strategies Cambridge University Finance Seminar, Lent Term, 2005 Dimitris Melas, Global Head of Quantitative Research HSBC Asset Management (Europe)
Mean Reversion - Illustration of Irregular Returns in US Equity and Fixed Income Markets
AlphaQuest CTA Research Series #4 The goal of this research series is to demystify specific black box CTA trend following strategies and to analyze their characteristics both as a stand-alone product as
GMO WHITE PAPER. The Capacity of an Equity Strategy. Defining and Estimating the Capacity of a Quantitative Equity Strategy. What Is Capacity?
GMO WHITE PAPER March 2006 The Capacity of an Equity Strategy Defining and Estimating the Capacity of a Quantitative Equity Strategy Marco Vangelisti Product Manager Capacity is an intuitive but ill-defined
The Lee Kong Chian School of Business Academic Year 2014 /15 Term 2
The Lee Kong Chian School of Business Academic Year 2014 /15 Term 2 QF 206 QUANTITATIVE TRADING STRATEGIES Instructor Name : Christopher Ting Title : Associate Professor of Quantitative Finance Practice
Asset Liability Management / Liability Driven Investment Optimization (LDIOpt)
Asset Liability Management / Liability Driven Investment Optimization (LDIOpt) Introduction ALM CASH FLOWS OptiRisk Liability Driven Investment Optimization LDIOpt is an asset and liability management
Contents. List of Figures. List of Tables. List of Examples. Preface to Volume IV
Contents List of Figures List of Tables List of Examples Foreword Preface to Volume IV xiii xvi xxi xxv xxix IV.1 Value at Risk and Other Risk Metrics 1 IV.1.1 Introduction 1 IV.1.2 An Overview of Market
Pairs Trading STRATEGIES
Pairs Trading Pairs trading refers to opposite positions in two different stocks or indices, that is, a long (bullish) position in one stock and another short (bearish) position in another stock. The objective
Performance of pairs trading on the S&P 500 index
Performance of pairs trading on the S&P 500 index By: Emiel Verhaert, studentnr: 348122 Supervisor: Dick van Dijk Abstract Until now, nearly all papers focused on pairs trading have just implemented the
High-frequency trading, flash crashes & regulation Prof. Philip Treleaven
High-frequency trading, flash crashes & regulation Prof. Philip Treleaven Director, UCL Centre for Financial Computing UCL Professor of Computing www.financialcomputing.org [email protected] Normal
Whether you re new to trading or an experienced investor, listed stock
Chapter 1 Options Trading and Investing In This Chapter Developing an appreciation for options Using option analysis with any market approach Focusing on limiting risk Capitalizing on advanced techniques
MATLAB as an Automated Execution System
MATLAB as an Automated Execution System By Ernest P. Chan, Ph.D. Many traders are familiar with MATLAB as a powerful software platform for backtesting trading strategies. This is especially true for those
Stock Market Dashboard Back-Test October 29, 1998 March 29, 2010 Revised 2010 Leslie N. Masonson
Stock Market Dashboard Back-Test October 29, 1998 March 29, 2010 Revised 2010 Leslie N. Masonson My objective in writing Buy DON T Hold was to provide investors with a better alternative than the buy-and-hold
Nest Plus StocksIQ User Manual
Omnesys Technologies Pvt. Ltd. NEST PLUS Nest Plus StocksIQ User Manual February, 2013 https://plus.omnesysindia.com/nestplus/ Page 1 of 7 Document Information DOCUMENT CONTROL INFORMATION DOCUMENT Nest
Rotational Trading using the %b Oscillator
Rotational Trading using the %b Oscillator Published in the Journal of Technical Analysis http://bit.ly/1js6dbo February 2007 H. Parker Evans, CFA, CFP Introduction Academic finance is replete with studies
My EA Builder 1.1 User Guide
My EA Builder 1.1 User Guide COPYRIGHT 2014. MyEABuilder.com. MetaTrader is a trademark of MetaQuotes www.metaquotes.net. Table of Contents MAIN FEATURES... 3 PC REQUIREMENTS... 3 INSTALLATION... 4 METATRADER
15.496 Data Technologies for Quantitative Finance
Paul F. Mende MIT Sloan School of Management Fall 2014 Course Syllabus 15.496 Data Technologies for Quantitative Finance Course Description. This course introduces students to financial market data and
Quantitative Trading. How to Build Your Own Algorithmic Trading Business. Wiley Trading
Brochure More information from http://www.researchandmarkets.com/reports/2241256/ Quantitative Trading. How to Build Your Own Algorithmic Trading Business. Wiley Trading Description: Praise for Quantitative
UNUSUAL VOLUME SYSTEM
UNUSUAL VOLUME SYSTEM FREE SAMPLE: THIS DOCUMENT SHOWS JUST ONE EXAMPLE OF THE 30+ TRADING STRATEGIES INCLUDED IN THE HOW TO BEAT WALL STREET VIP PACKAGE. THE VIP PACKAGE ALSO INCLUDES VIDEOS, TUTORIALS,
Using Order Book Data
Q3 2007 Using Order Book Data Improve Automated Model Performance by Thom Hartle TradeFlow Charts and Studies - Patent Pending TM Reprinted from the July 2007 issue of Automated Trader Magazine www.automatedtrader.net
Algorithmic Trading Course Module 2: Backtesting & Quantitative Trading
Algorithmic Trading Course Module 2: Backtesting & Quantitative Trading Date& Time : 7 & 8 November 2013 5:30 PM - 10:00 PM 9 & 10 November 2013 9:30 AM - 5:30 PM Venue : Nanyang Business School, NTU-SGX
CONTENTS MODULE 1: INDUSTRY OVERVIEW 4 MODULE 2: ETHICS AND REGULATION 6 MODULE 3: INPUTS AND TOOLS 8 MODULE 4: INVESTMENT INSTRUMENTS 12
SYLLABUS OVERVIEW 1 CONTENTS MODULE 1: INDUSTRY OVERVIEW 4 CHAPTER 1 The Investment Industry: A Top-Down View MODULE 2: ETHICS AND REGULATION 6 CHAPTER 2 CHAPTER 3 Ethics and Investment Professionalism
ETF Total Cost Analysis in Action
Morningstar ETF Research ETF Total Cost Analysis in Action Authors: Paul Justice, CFA, Director of ETF Research, North America Michael Rawson, CFA, ETF Analyst 2 ETF Total Cost Analysis in Action Exchange
Fast Trading and Prop Trading
Fast Trading and Prop Trading B. Biais, F. Declerck, S. Moinas (Toulouse School of Economics) December 11, 2014 Market Microstructure Confronting many viewpoints #3 New market organization, new financial
Society of Actuaries in Ireland
Society of Actuaries in Ireland Information and Assistance Note LA-1: Actuaries involved in the Own Risk & Solvency Assessment (ORSA) under Solvency II Life Assurance and Life Reinsurance Business Issued
Multiple Kernel Learning on the Limit Order Book
JMLR: Workshop and Conference Proceedings 11 (2010) 167 174 Workshop on Applications of Pattern Analysis Multiple Kernel Learning on the Limit Order Book Tristan Fletcher Zakria Hussain John Shawe-Taylor
Algorithmic Trading Present and Future in Korea
Algorithmic Trading Present and Future in Korea Sukju Hwang Nov. 15, 2013 Backgrounds Brief history of brokerage Algorithmic trading in Korea - 2003 FIX Adoption (Samsung Asset management) - 2003 FIX order
From thesis to trading: a trend detection strategy
Caio Natividade Vivek Anand Daniel Brehon Kaifeng Chen Gursahib Narula Florent Robert Yiyi Wang From thesis to trading: a trend detection strategy DB Quantitative Strategy FX & Commodities March 2011 Deutsche
Risk Visualization: Presenting Data to Facilitate Better Risk Management
Track 4: New Dimensions in Financial Risk Management Risk Visualization: Presenting Data to Facilitate Better Risk Management 1:30pm 2:20pm Presenter: Jeffrey Bohn Senior Managing Director, Head of Portfolio
Commodity Trading Advisors. AQF 2005 Nicolas Papageorgiou
Commodity Trading Advisors AQF 2005 Nicolas Papageorgiou Market size The current size of the global capital markets is estimated to be about $55 trillion, according to Anjilvel, Boudreau, Johmann, Peskin
Algorithmic Trading: A Quantitative Approach to Developing an Automated Trading System
Algorithmic Trading: A Quantitative Approach to Developing an Automated Trading System Luqman-nul Hakim B M Lukman, Justin Yeo Shui Ming NUS Investment Society Research (Quantitative Finance) Abstract:
JUST SIT BACK AND LET THE GIRTH MODEL MAKE MONEY FOR YOU. Elham Negahdary
Electronic Proceedings of Undergraduate Mathematics Day 4 2010 No. 2, 1 6; http://academic.udayton.edu/epumd/ JUST SIT BACK AND LET THE GIRTH MODEL MAKE MONEY FOR YOU Elham Negahdary Department of Mathematics,
Machine Learning and Algorithmic Trading
Machine Learning and Algorithmic Trading In Fixed Income Markets Algorithmic Trading, computerized trading controlled by algorithms, is natural evolution of security markets. This area has evolved both
Enterprise Risk Management
Enterprise Risk Management Enterprise Risk Management Understand and manage your enterprise risk to strike the optimal dynamic balance between minimizing exposures and maximizing opportunities. Today s
Intraday FX Trading: An Evolutionary Reinforcement Learning Approach
1 Civitas Foundation Finance Seminar Princeton University, 20 November 2002 Intraday FX Trading: An Evolutionary Reinforcement Learning Approach M A H Dempster Centre for Financial Research Judge Institute
Understanding Managed Futures
Understanding Managed Futures February 2009 Introduction Managed futures have proven their strengths as an investment since the first funds were launched in the early 1970s. For over more than 30 years,
Department of Accounting and Finance
Department of Accounting and Finance Modules, other than Introductory modules may have pre-requisites or co-requisites (please, see module descriptions below) and a student must have undertaken and passed
Value, size and momentum on Equity indices a likely example of selection bias
WINTON Working Paper January 2015 Value, size and momentum on Equity indices a likely example of selection bias Allan Evans, PhD, Senior Researcher Carsten Schmitz, PhD, Head of Research (Zurich) Value,
Long/Short Equity Strategy
Long/Short Equity Strategy A long/short equity strategy shifts the principal risk from market risk to manager risk based on the premise that skilled stock selection drives positive returns. What is Long/Short
Risks Involved with Systematic Investment Strategies
Risks Involved with Systematic Investment Strategies SIMC Lectures in Entrepreneurial Leadership, ETH Zurich, D-MTEC, February 5, 2008 Dr. Gabriel Dondi ([email protected]) This work is subject to copyright.
CURRENCY TRADING Using Swing Breakouts in Forex Trading
CURRENCY TRADING Using Swing Breakouts in Forex Trading 28 MAY 2009 Doug Schaff discusses the use of intermediate swing highs and swing lows to develop a shortterm approach to trading the currency markets.
Finanzdienstleistungen (Praxis) Algorithmic Trading
Finanzdienstleistungen (Praxis) Algorithmic Trading Definition A computer program (Software) A process for placing trade orders like Buy, Sell It follows a defined sequence of instructions At a speed and
Replicating Life Insurance Liabilities
Replicating Life Insurance Liabilities O. Khomenko Jena, 23 March 2011 1 Solvency II New Regulation for Insurance Industry Solvency II is a new regulation for European insurance industry. It is expected
Financial Text Mining
Enabling Sophisticated Financial Text Mining Calum Robertson Research Analyst, Sirca Background Data Research Strategies Obstacles Conclusions Overview Background Efficient Market Hypothesis Asset Price
MSc Financial Economics - SH506 (Under Review)
MSc Financial Economics - SH506 (Under Review) 1. Objectives The objectives of the MSc Financial Economics programme are: To provide advanced postgraduate training in financial economics with emphasis
Day Trading Stock Controller
Day Trading Stock Controller Disclaimer: Trading stocks, including ETFs, involves substantial risk of loss and is not suitable for all people. You should carefully consider whether trading, especially
Scientific Programming in Python
UCSD March 9, 2009 What is Python? Python in a very high level (scripting) language which has gained widespread popularity in recent years. It is: What is Python? Python in a very high level (scripting)
International Investments
2008 AGI-Information Management Consultants May be used for personal purporses only or by libraries associated to dandelon.com network. International Investments Bruno Solnik H.E.C. SCHOOL of MANAGEMENT
Guidance for the Development of a Models-Based Solvency Framework for Canadian Life Insurance Companies
Guidance for the Development of a Models-Based Solvency Framework for Canadian Life Insurance Companies January 2010 Background The MCCSR Advisory Committee was established to develop proposals for a new
Analyzing an Electronic Limit Order Book
64 CONTRIBUTED RESEARCH ARTICLES Analyzing an Electronic Limit Order Book by David Kane, Andrew Liu, and Khanh Nguyen Abstract The orderbook package provides facilities for exploring and visualizing the
Intraday Trading Invariance. E-Mini S&P 500 Futures Market
in the E-Mini S&P 500 Futures Market University of Illinois at Chicago Joint with Torben G. Andersen, Pete Kyle, and Anna Obizhaeva R/Finance 2015 Conference University of Illinois at Chicago May 29-30,
Understanding Currency
Understanding Currency Overlay July 2010 PREPARED BY Gregory J. Leonberger, FSA Director of Research Abstract As portfolios have expanded to include international investments, investors must be aware of
Software support for economic research at CNB
Software support for economic research at CNB Modern tools for financial analysis and modeling František Brázdik Macroeconomic Forecasting Division [email protected] Czech National Bank May 23,
Sentiment Analysis of Twitter Feeds for the Prediction of Stock Market Movement
Sentiment Analysis of Twitter Feeds for the Prediction of Stock Market Movement Ray Chen, Marius Lazer Abstract In this paper, we investigate the relationship between Twitter feed content and stock market
Portfolio Management for Banks
Enterprise Risk Solutions Portfolio Management for Banks RiskFrontier, our industry-leading economic capital and credit portfolio risk management solution, along with our expert Portfolio Advisory Services
Master of Business Administration Program in the Faculty of Business Administration and Economics
Master of Business Administration Program in the Faculty of Business Administration and Economics The Faculty of Business Administration and Economics at Haigazian University offers a degree program leading
Online tools for demonstration of backtest overfitting
Online tools for demonstration of backtest overfitting David H. Bailey Jonathan M. Borwein Amir Salehipour Marcos López de Prado Qiji Zhu November 29, 2015 Abstract In mathematical finance, backtest overfitting
Master of Business Administration Program in the Faculty of Business Administration and Economics
Master of Business Administration Program in the Faculty of Business Administration and Economics The Faculty of Business Administration and Economics at Haigazian University offers a degree program leading
Master of Science in Finance (MSF) (Courses option)
Finance Department College of Business Administration Master of Science in Finance (MSF) (Courses option) 1430 AH 2009 AD Page(1) Introduction People working in the finance related professions are increasingly
Machine Learning Applications in Algorithmic Trading
Machine Learning Applications in Algorithmic Trading Ryan Brosnahan, Ross Rothenstine Introduction: Computer controlled algorithmic trading is used by financial institutions around the world and accounted
Survivorship Bias in the Development of Equity Trading Systems
Survivorship Bias in the Development of Equity Trading Systems A review of the Survivorship Bias inherent in current practices of defining research universes for testing equity trading systems By Thomas
Quantitative Methods for Finance
Quantitative Methods for Finance Module 1: The Time Value of Money 1 Learning how to interpret interest rates as required rates of return, discount rates, or opportunity costs. 2 Learning how to explain
Does trend following work on stocks? Part II
Does trend following work on stocks? Part II Trend following involves selling or avoiding assets that are declining in value, buying or holding assets that are rising in value, and actively managing the
Algorithmic trading facts & fantasies
Algorithmic trading facts & fantasies J Scott Kerson Head of Commodities AHL / Man Systematic Strategies, Man Group PLC LBMA/LPPM Precious Metals Conference 2013 For institutional/professional and/or qualified
CRASH COURSE PYTHON. Het begint met een idee
CRASH COURSE PYTHON nr. Het begint met een idee This talk Not a programming course For data analysts, who want to learn Python For optimizers, who are fed up with Matlab 2 Python Scripting language expensive
Calculation of Valu-Trac Statuses
Calculation of Intrinsic Value Yield Latest Cash Earnings (Net Income + Depreciation and Amortization) (put aside) Dividend (subtract) Provision for Depreciation (Net Assets x Inflation Rate) (subtract)
INFERRING TRADING STRATEGIES FROM PROBABILITY DISTRIBUTION FUNCTIONS
INFERRING TRADING STRATEGIES FROM PROBABILITY DISTRIBUTION FUNCTIONS INFERRING TRADING STRATEGIES FROM PROBABILITY DISTRIBUTION FUNCTIONS BACKGROUND The primary purpose of technical analysis is to observe
Business Analytics Syllabus
B6101 Business Analytics Fall 2014 Business Analytics Syllabus Course Description Business analytics refers to the ways in which enterprises such as businesses, non-profits, and governments can use data
Turk s ES ZigZag Day Trading Strategy
Turk s ES ZigZag Day Trading Strategy User Guide 11/15/2013 1 Turk's ES ZigZag Strategy User Manual Table of Contents Disclaimer 3 Strategy Overview.. 4 Strategy Detail.. 6 Data Symbol Setup 7 Strategy
Managing Risks and Optimising an Energy Portfolio with PLEXOS
Managing Risks and Optimising an Energy Portfolio with PLEXOS Tom Forrest, B.Com. (Hons) Senior Power Market Consultant - Europe 1 Introduction Energy markets inherently exhibit far greater risk compared
Scalping Trade Strategies April 14, 2009
www.fxcm.com [email protected] Scalping Trade Strategies April 14, 2009 DailyFX Research Team John Kicklighter David Rodriguez Currency Strategists 1-212-897-7660 1-888-50-FOREX (36739) Just a decade ago,
Distributed Computational Finance Infrastructure for Algorithmic and Proprietary Trading
Distributed Computational Finance Infrastructure for Algorithmic and Proprietary Trading UK PhD Centre in Financial Computing, Department of Computer Science, University College London Michal Galas [[email protected]]
Marketing Mix Modelling and Big Data P. M Cain
1) Introduction Marketing Mix Modelling and Big Data P. M Cain Big data is generally defined in terms of the volume and variety of structured and unstructured information. Whereas structured data is stored
Black Box Trend Following Lifting the Veil
AlphaQuest CTA Research Series #1 The goal of this research series is to demystify specific black box CTA trend following strategies and to analyze their characteristics both as a stand-alone product as
The Future of Algorithmic Trading
The Future of Algorithmic Trading Apama Track Dan Hubscher, Principal Product Marketing Manager, Progress Apama Progress Exchange Brasil 2009 Progress Exchange Brasil 2009 21 de Outubro São Paulo Brasil
Certification Program on Corporate Treasury Management
Certification Program on Corporate Treasury Management Introduction to corporate treasury management Introduction to corporate treasury management: relevance, scope, approach and issues Understanding treasury
Schroders Investment Risk Group
provides investment management services for a broad spectrum of clients including institutional, retail, private clients and charities. The long term objectives of any investment programme that we implement
Simpler Options. Indicator guide. An informative reference for John Carter s commonly used trading indicators. www.simpleroptions.
Simpler Options Indicator guide An informative reference for John Carter s commonly used trading indicators At Simpler Options you will see a handful of proprietary indicators on John Carter s charts.
ELECTRONIC TRADING GLOSSARY
ELECTRONIC TRADING GLOSSARY Algorithms: A series of specific steps used to complete a task. Many firms use them to execute trades with computers. Algorithmic Trading: The practice of using computer software
INCORPORATION OF LIQUIDITY RISKS INTO EQUITY PORTFOLIO RISK ESTIMATES. Dan dibartolomeo September 2010
INCORPORATION OF LIQUIDITY RISKS INTO EQUITY PORTFOLIO RISK ESTIMATES Dan dibartolomeo September 2010 GOALS FOR THIS TALK Assert that liquidity of a stock is properly measured as the expected price change,
The Master of Science in Finance (English Program) - MSF. Department of Banking and Finance. Chulalongkorn Business School. Chulalongkorn University
The Master of Science in Finance (English Program) - MSF Department of Banking and Finance Chulalongkorn Business School Chulalongkorn University Overview of Program Structure Full Time Program: 1 Year
DATA SCIENCE CURRICULUM WEEK 1 ONLINE PRE-WORK INSTALLING PACKAGES COMMAND LINE CODE EDITOR PYTHON STATISTICS PROJECT O5 PROJECT O3 PROJECT O2
DATA SCIENCE CURRICULUM Before class even begins, students start an at-home pre-work phase. When they convene in class, students spend the first eight weeks doing iterative, project-centered skill acquisition.
Exercise 0. Although Python(x,y) comes already with a great variety of scientic Python packages, we might have to install additional dependencies:
Exercise 0 Deadline: None Computer Setup Windows Download Python(x,y) via http://code.google.com/p/pythonxy/wiki/downloads and install it. Make sure that before installation the installer does not complain
Measuring downside risk of stock returns with time-dependent volatility (Downside-Risikomessung für Aktien mit zeitabhängigen Volatilitäten)
Topic 1: Measuring downside risk of stock returns with time-dependent volatility (Downside-Risikomessung für Aktien mit zeitabhängigen Volatilitäten) One of the principal objectives of financial risk management
DELTA Dashboards Visualise, Analyse and Monitor kdb+ Datasets with Delta Dashboards
Delta Dashboards is a powerful, real-time presentation layer for the market-leading kdb+ database technology. They provide rich visualisation of both real-time streaming data and highly optimised polled
ATTITUDE TO RISK. In this module we take a look at risk management and its importance. MODULE 5 INTRODUCTION PROGRAMME NOVEMBER 2012, EDITION 18
INTRODUCTION PROGRAMME MODULE 5 ATTITUDE TO RISK In this module we take a look at risk management and its importance. NOVEMBER 2012, EDITION 18 CONTENTS 3 6 RISK MANAGEMENT 2 In the previous module we
ALGORITHMIC TRADING USING MACHINE LEARNING TECH-
ALGORITHMIC TRADING USING MACHINE LEARNING TECH- NIQUES: FINAL REPORT Chenxu Shao, Zheming Zheng Department of Management Science and Engineering December 12, 2013 ABSTRACT In this report, we present an
