SlideShare a Scribd company logo
How To Build Your Own Pairs Trading
Algorithm Trading System

Quantopian Meetup
Gary Chan
Introduction
• Started programming at a young age
• Played poker as main source of income for a few
years
• Money is just a way to keep score
• Became interested in stock market
• Read ~70 textbooks, mostly corporate finance,
CFA curriculum
• Currently running an algorithmic trading system
out of my apartment
Expectations
• I’m not here to divulge secrets
• Teach a man to fish, not give him a fish
• You will see how easy the pairs trading model is
to understand and build
• Deployable by retail investors
• Seeing is believing
• You will not be able to build your own
tomorrow… but one day… if you want it badly
enough
• It’s a small world, so share ideas
Why you can beat the professionals
• Definition of professionals
• Algorithmic does not mean high
frequency
• HFT is not for retail investors
• Strategy capacity
• Find a niche
Disclaimers
• A lot of learning, before this came to fruition
• Content here will not be complete due to time
constraints
• Survivorship bias, Look ahead bias
• Model risk, implementation risk, execution
risk, over parameterization
• Random models can have profitable backtests
• I’m not responsible if you lose money
Algorithmic Trading is Easy
•
•
•
•
•
•

What does easy / hard mean?
Info, books, tools, cheaply or freely available
Yahoo, Google, Morningstar, Edgar, Quantopian
Visual Studio Express, MySQL, R
Many textbooks written on the subject
Low capital requirements (30K minimum)
compared to other ventures
• Backtest before you use real money!!
• Higher quality data will cost more money
My Current System
•
•
•
•
•

Low frequency
Single computer, 3 years old
Runs on Wifi from my apartment
Started coding Oct 2012
Started forward testing play money in March
2013
• Started forward testing real money June 2013
• Current performance consistent with backtests
• Just started using cloud computing
My Cloud
My Cloud Part 2
Backtesting
• Profitable backtests does not mean good
• You need a valid model
• Live trading WILL underperform backtests
How A Good Backtest Looks
• Consistent, high R Squared
• Similar parameters have similar equity curves
Key Info From Backtests
•
•
•
•

Portfolio of 39 pairs
Average of 12 to 18 pairs with opened positions, $5400 max drawdown
$10k sized legs in backtests, $395 average profit per trade
81.3% winning trades, 4540 trades, 26 day average holding period
Pairs Trading Books
• Contains Code
• Complete manual to putting together your own system
Types of Investment Strategies
• Mean Reversion
– Buy low, sell high / Sell high, buy low
– Fundamental Analysis
– Statistical Arbitrage

• Momentum
– Sell low, buy lower / Buy high, sell higher
– News

• Technical analysis does not work
Necessary Math
•
•
•
•
•
•
•

Basic statistics
Linear algebra
Standard deviations, regressions
Types of distributions (normal, logarithmic)
Random walks
Stationary (mean reverting) series
Cointegration
Mean Reversion Example #1
•
•
•
•
•

Keep an opened mind
Everything can be measured in money
If you don’t believe me, put it on EBay
Fear can be measured in dollars
Unwarranted fear -> Sell volatility to profit
Mean Reversion Example #2
•
•
•
•
•

Stocks move in random walks
Some stocks move together
Spread between the stocks are mean reverting
Buy low, sell high on the spread
Statistical arbitrage means you win most of the
time, not all the time
• Buyouts and bankruptcies result in large losses
• Diversification is a must
• Learn some corporate finance / fundamentals
Case Study, GLD and IAU
• Two gold ETF’s
• Pull end of day prices from Yahoo Finance into
csv files
• Do a linear regression
• Calculate the spread
• Graph of spread is mean reverting
• Find #Stdevs to enter / exit trade
• Optimize parameters
Next Steps
• Try higher quality data
• You could trade this by hand + excel, but
better to automate the process
• Many systems are built in excel
• Optimize the code
• Backtest until you find a profitable strategy
• Use a brokerage with an API, sample code
• Forward test with play money
Next Steps Part 2
•
•
•
•
•
•
•

Execution, order, position management
Test with small amounts of real money
Tweak your system
Ramp up trading size if still profitable
Exhaust universe for the strategy
Find new strategies
Never stop learning
The End
• Ernest P Chan - Quantitative Trading: How to Build
Your Own Algorithmic Trading Business (Wiley Trading)
• Ganapathy Vidyamurthy - Pairs Trading: Quantitative
Methods and Analysis (Wiley Finance)
• R - http://www.r-project.org/ (like Matlab)
Yahoo, Google, Morningstar, Edgar, Quantopian
• Visual Studio Express, MySQL, R
• garychan7@gmail.com
• https://twitter.com/RITrading - I tweet my trades here

More Related Content

PDF
Algorithmic trading and Machine Learning by Michael Kearns, Professor of Comp...
PDF
Beware of Low Frequency Data by Ernie Chan, Managing Member, QTS Capital Mana...
PPTX
"From Alpha Discovery to Portfolio Construction: Pitfalls and Solutions" by D...
PDF
Statistics - The Missing Link Between Technical Analysis and Algorithmic Trad...
PDF
"A Framework-Based Approach to Building Quantitative Trading Systems" by Dr. ...
PPTX
"Quant Trading for a Living – Lessons from a Life in the Trenches" by Andreas...
PDF
"Trading Strategies That Are Designed Not Fitted" by Robert Carver, Independe...
PPTX
Automated Selection and Robustness for Systematic Trading Strategies by Dr. T...
Algorithmic trading and Machine Learning by Michael Kearns, Professor of Comp...
Beware of Low Frequency Data by Ernie Chan, Managing Member, QTS Capital Mana...
"From Alpha Discovery to Portfolio Construction: Pitfalls and Solutions" by D...
Statistics - The Missing Link Between Technical Analysis and Algorithmic Trad...
"A Framework-Based Approach to Building Quantitative Trading Systems" by Dr. ...
"Quant Trading for a Living – Lessons from a Life in the Trenches" by Andreas...
"Trading Strategies That Are Designed Not Fitted" by Robert Carver, Independe...
Automated Selection and Robustness for Systematic Trading Strategies by Dr. T...

What's hot (20)

PPTX
"Enhancing Statistical Significance of Backtests" by Dr. Ernest Chan, Managin...
PDF
A Guided Tour of Machine Learning for Traders by Tucker Balch at QuantCon 2016
PPTX
"A Framework for Developing Trading Models Based on Machine Learning" by Kris...
PDF
"Portfolio Optimisation When You Don’t Know the Future (or the Past)" by Rob...
PDF
Should You Build Your Own Backtester? by Michael Halls-Moore at QuantCon 2016
PDF
10 Ways Backtests Lie by Tucker Balch
PDF
"Quantitative Trading as a Mathematical Science" by Dr. Haksun Li, Founder an...
PPTX
DIY Quant Strategies on Quantopian
PDF
"Active Learning in Trading Algorithms" by David Fellah, Head of the EMEA Lin...
PDF
Backtesting And Live Trading With Interactive Brokers Using Python With Dr. H...
PDF
Modeling Transaction Costs for Algorithmic Strategies
PPTX
Algorithmic Trading: an Overview
PPTX
"From Trading Strategy to Becoming an Industry Professional – How to Break in...
PDF
Market Timing, Big Data, and Machine Learning by Xiao Qiao at QuantCon 2016
PDF
Trade Like a Chimp: Unleash Your Inner Primate by Andreas Clenow at QuantCon ...
PPTX
P Opening Drive and Pullback - Jan 7, 2014
PPTX
The QuantCon Keynote: "Counter Trend Trading – Threat or Complement to Trend ...
PPTX
Classification of quantitative trading strategies webinar ppt
PPTX
"Alpha from Alternative Data" by Emmett Kilduff, Founder and CEO of Eagle Alpha
PDF
"Build Effective Risk Management on Top of Your Trading Strategy" by Danielle...
"Enhancing Statistical Significance of Backtests" by Dr. Ernest Chan, Managin...
A Guided Tour of Machine Learning for Traders by Tucker Balch at QuantCon 2016
"A Framework for Developing Trading Models Based on Machine Learning" by Kris...
"Portfolio Optimisation When You Don’t Know the Future (or the Past)" by Rob...
Should You Build Your Own Backtester? by Michael Halls-Moore at QuantCon 2016
10 Ways Backtests Lie by Tucker Balch
"Quantitative Trading as a Mathematical Science" by Dr. Haksun Li, Founder an...
DIY Quant Strategies on Quantopian
"Active Learning in Trading Algorithms" by David Fellah, Head of the EMEA Lin...
Backtesting And Live Trading With Interactive Brokers Using Python With Dr. H...
Modeling Transaction Costs for Algorithmic Strategies
Algorithmic Trading: an Overview
"From Trading Strategy to Becoming an Industry Professional – How to Break in...
Market Timing, Big Data, and Machine Learning by Xiao Qiao at QuantCon 2016
Trade Like a Chimp: Unleash Your Inner Primate by Andreas Clenow at QuantCon ...
P Opening Drive and Pullback - Jan 7, 2014
The QuantCon Keynote: "Counter Trend Trading – Threat or Complement to Trend ...
Classification of quantitative trading strategies webinar ppt
"Alpha from Alternative Data" by Emmett Kilduff, Founder and CEO of Eagle Alpha
"Build Effective Risk Management on Top of Your Trading Strategy" by Danielle...
Ad

Viewers also liked (18)

PDF
The Mobile Revolution and the Future of Modern Data Collection by Joe Reising...
PDF
The Genesis of an Order Type by Dan Aisen, Co-founder and Quantitative Develo...
PDF
Case Studies in Creating Quant Models from Large Scale Unstructured Text by S...
PPT
Algorithmic Trading-An Introduction
PDF
Careers in Systematic Investing: Advice and Perspective at the End by Matthew...
PPTX
Algorithmic Trading
PDF
Changing Notions of Risk Management in Financial Markets
PDF
(Krx 홍콩+세미나+참가후기) 세미나+발표자료_101004
PDF
Finding Alpha from Stock Buyback Announcements in the Quantopian Research Pla...
PPTX
Quantinsti’s webinar on algorithmic trading
PDF
Using Domain Expertise to Improve Text Analysis, Evan Schnidman, Founder and ...
PDF
Welcome to QuantCon 2015 by John “Fawce” Fawcett, Founder and CEO of Quantopian
PDF
Self-Directed Investing by Akhil Lodha, Co-founder of Sliced Investing, and M...
PPTX
Crowd-sourced Alpha: The Search for the Holy Grail of Investing
PPTX
Presentation Robot Trading By Fisline
PPTX
Algorithmic trading
PDF
알고리즘트레이딩(우투증권)
PDF
Peculiarities of Volatilities by Ernest Chan at QuantCon 2016
The Mobile Revolution and the Future of Modern Data Collection by Joe Reising...
The Genesis of an Order Type by Dan Aisen, Co-founder and Quantitative Develo...
Case Studies in Creating Quant Models from Large Scale Unstructured Text by S...
Algorithmic Trading-An Introduction
Careers in Systematic Investing: Advice and Perspective at the End by Matthew...
Algorithmic Trading
Changing Notions of Risk Management in Financial Markets
(Krx 홍콩+세미나+참가후기) 세미나+발표자료_101004
Finding Alpha from Stock Buyback Announcements in the Quantopian Research Pla...
Quantinsti’s webinar on algorithmic trading
Using Domain Expertise to Improve Text Analysis, Evan Schnidman, Founder and ...
Welcome to QuantCon 2015 by John “Fawce” Fawcett, Founder and CEO of Quantopian
Self-Directed Investing by Akhil Lodha, Co-founder of Sliced Investing, and M...
Crowd-sourced Alpha: The Search for the Holy Grail of Investing
Presentation Robot Trading By Fisline
Algorithmic trading
알고리즘트레이딩(우투증권)
Peculiarities of Volatilities by Ernest Chan at QuantCon 2016
Ad

Similar to Pairs Trading from NYC Algorithmic Trading Meetup November '13 (20)

PPTX
Algorithmic Trading
PDF
Lecture 6 Discovering Trade Ideas and how
PDF
Artificial Intelligence Working On Investment Management
PPS
How to become a Full Time Trader - Nooresh Merani
PPS
How to become a Full Time Trader
PPTX
Kleos Africa webinar Babatunde Akin-Moses - Business Valuation Simplified
PPTX
Accounting Technology and Systems Selection
PPTX
The Future of Prop Trading Webinar with BigMikeTrading.com
PPTX
Singapore iFest 2013
PPTX
Developer's Guide to Running Sales Teams
PPTX
SalesKoch Playbook
PPTX
A prop firm's transition to building multi product, multi-market discretionar...
PDF
Reducing the hit &-miss in scaling up an agent network
PPTX
Zero to 100 - Part 6: Experiences putting Theory into Practice
PPTX
Myths, Lies and Illusions of AB and Split Testing
PDF
Wagga Digital Enterprise Training Session 4 (eCommerce)
PDF
Optimize Your Funnel By Getting Inside Your Buyer's Head
PPTX
DrMustansar_69_16723_1_Lecture 09 Stock Markets.pptx
PDF
Ramon ray
PPTX
Algorithmic Trading
Lecture 6 Discovering Trade Ideas and how
Artificial Intelligence Working On Investment Management
How to become a Full Time Trader - Nooresh Merani
How to become a Full Time Trader
Kleos Africa webinar Babatunde Akin-Moses - Business Valuation Simplified
Accounting Technology and Systems Selection
The Future of Prop Trading Webinar with BigMikeTrading.com
Singapore iFest 2013
Developer's Guide to Running Sales Teams
SalesKoch Playbook
A prop firm's transition to building multi product, multi-market discretionar...
Reducing the hit &-miss in scaling up an agent network
Zero to 100 - Part 6: Experiences putting Theory into Practice
Myths, Lies and Illusions of AB and Split Testing
Wagga Digital Enterprise Training Session 4 (eCommerce)
Optimize Your Funnel By Getting Inside Your Buyer's Head
DrMustansar_69_16723_1_Lecture 09 Stock Markets.pptx
Ramon ray

More from Quantopian (20)

PPTX
Being open (source) in the traditionally secretive field of quant finance.
PPTX
Stauth common pitfalls_stock_market_modeling_pqtc_fall2018
PPTX
Tearsheet feedback webinar 10.10.18
PDF
"Three Dimensional Time: Working with Alternative Data" by Kathryn Glowinski,...
PPTX
"Supply Chain Earnings Diffusion" by Josh Holcroft, Head of Quantitative Rese...
PDF
“Real Time Machine Learning Architecture and Sentiment Analysis Applied to Fi...
PDF
“Market Insights Through the Lens of a Risk Model” by Olivier d'Assier, Head ...
PDF
"Maximize Alpha with Systematic Factor Testing" by Cheng Peng, Software Engin...
PPTX
"How to Run a Quantitative Trading Business in China with Python" by Xiaoyou ...
PDF
"Fundamental Forecasts: Methods and Timing" by Vinesh Jha, CEO of ExtractAlpha
PDF
"Deep Reinforcement Learning for Optimal Order Placement in a Limit Order Boo...
PPTX
"Making the Grade: A Look Inside the Algorithm Evaluation Process" by Dr. Jes...
PDF
"Building Diversified Portfolios that Outperform Out-of-Sample" by Dr. Marcos...
PPTX
"From Insufficient Economic data to Economic Big Data – How Trade Data is red...
PDF
"Machine Learning Approaches to Regime-aware Portfolio Management" by Michael...
PDF
"Don't Lose Your Shirt Trading Mean-Reversion" by Edith Mandel, Principal at ...
PDF
"Deep Q-Learning for Trading" by Dr. Tucker Balch, Professor of Interactive C...
PDF
"Quantum Hierarchical Risk Parity - A Quantum-Inspired Approach to Portfolio ...
PDF
"Snake Oil, Swamp Land, and Factor-Based Investing" by Gary Antonacci, author...
PPTX
"Bayesian Deep Learning: Dealing with Uncertainty and Non-Stationarity" by Dr...
Being open (source) in the traditionally secretive field of quant finance.
Stauth common pitfalls_stock_market_modeling_pqtc_fall2018
Tearsheet feedback webinar 10.10.18
"Three Dimensional Time: Working with Alternative Data" by Kathryn Glowinski,...
"Supply Chain Earnings Diffusion" by Josh Holcroft, Head of Quantitative Rese...
“Real Time Machine Learning Architecture and Sentiment Analysis Applied to Fi...
“Market Insights Through the Lens of a Risk Model” by Olivier d'Assier, Head ...
"Maximize Alpha with Systematic Factor Testing" by Cheng Peng, Software Engin...
"How to Run a Quantitative Trading Business in China with Python" by Xiaoyou ...
"Fundamental Forecasts: Methods and Timing" by Vinesh Jha, CEO of ExtractAlpha
"Deep Reinforcement Learning for Optimal Order Placement in a Limit Order Boo...
"Making the Grade: A Look Inside the Algorithm Evaluation Process" by Dr. Jes...
"Building Diversified Portfolios that Outperform Out-of-Sample" by Dr. Marcos...
"From Insufficient Economic data to Economic Big Data – How Trade Data is red...
"Machine Learning Approaches to Regime-aware Portfolio Management" by Michael...
"Don't Lose Your Shirt Trading Mean-Reversion" by Edith Mandel, Principal at ...
"Deep Q-Learning for Trading" by Dr. Tucker Balch, Professor of Interactive C...
"Quantum Hierarchical Risk Parity - A Quantum-Inspired Approach to Portfolio ...
"Snake Oil, Swamp Land, and Factor-Based Investing" by Gary Antonacci, author...
"Bayesian Deep Learning: Dealing with Uncertainty and Non-Stationarity" by Dr...

Recently uploaded (20)

PDF
How to join illuminati agent in Uganda Kampala call 0782561496/0756664682
PPTX
Basic Concepts of Economics.pvhjkl;vbjkl;ptx
PDF
financing insitute rbi nabard adb imf world bank insurance and credit gurantee
PDF
1a In Search of the Numbers ssrn 1488130 Oct 2009.pdf
PPTX
kyc aml guideline a detailed pt onthat.pptx
PDF
final_dropping_the_baton_-_how_america_is_failing_to_use_russia_sanctions_and...
PDF
Circular Flow of Income by Dr. S. Malini
PDF
NAPF_RESPONSE_TO_THE_PENSIONS_COMMISSION_8 _2_.pdf
PDF
discourse-2025-02-building-a-trillion-dollar-dream.pdf
PPTX
EABDM Slides for Indifference curve.pptx
PDF
Predicting Customer Bankruptcy Using Machine Learning Algorithm research pape...
PPTX
Who’s winning the race to be the world’s first trillionaire.pptx
PDF
ABriefOverviewComparisonUCP600_ISP8_URDG_758.pdf
PPTX
social-studies-subject-for-high-school-globalization.pptx
PDF
Mathematical Economics 23lec03slides.pdf
PDF
illuminati Uganda brotherhood agent in Kampala call 0756664682,0782561496
PDF
Dialnet-DynamicHedgingOfPricesOfNaturalGasInMexico-8788871.pdf
PDF
ECONOMICS AND ENTREPRENEURS LESSONSS AND
PDF
HCWM AND HAI FOR BHCM STUDENTS(1).Pdf and ptts
PDF
ssrn-3708.kefbkjbeakjfiuheioufh ioehoih134.pdf
How to join illuminati agent in Uganda Kampala call 0782561496/0756664682
Basic Concepts of Economics.pvhjkl;vbjkl;ptx
financing insitute rbi nabard adb imf world bank insurance and credit gurantee
1a In Search of the Numbers ssrn 1488130 Oct 2009.pdf
kyc aml guideline a detailed pt onthat.pptx
final_dropping_the_baton_-_how_america_is_failing_to_use_russia_sanctions_and...
Circular Flow of Income by Dr. S. Malini
NAPF_RESPONSE_TO_THE_PENSIONS_COMMISSION_8 _2_.pdf
discourse-2025-02-building-a-trillion-dollar-dream.pdf
EABDM Slides for Indifference curve.pptx
Predicting Customer Bankruptcy Using Machine Learning Algorithm research pape...
Who’s winning the race to be the world’s first trillionaire.pptx
ABriefOverviewComparisonUCP600_ISP8_URDG_758.pdf
social-studies-subject-for-high-school-globalization.pptx
Mathematical Economics 23lec03slides.pdf
illuminati Uganda brotherhood agent in Kampala call 0756664682,0782561496
Dialnet-DynamicHedgingOfPricesOfNaturalGasInMexico-8788871.pdf
ECONOMICS AND ENTREPRENEURS LESSONSS AND
HCWM AND HAI FOR BHCM STUDENTS(1).Pdf and ptts
ssrn-3708.kefbkjbeakjfiuheioufh ioehoih134.pdf

Pairs Trading from NYC Algorithmic Trading Meetup November '13

  • 1. How To Build Your Own Pairs Trading Algorithm Trading System Quantopian Meetup Gary Chan
  • 2. Introduction • Started programming at a young age • Played poker as main source of income for a few years • Money is just a way to keep score • Became interested in stock market • Read ~70 textbooks, mostly corporate finance, CFA curriculum • Currently running an algorithmic trading system out of my apartment
  • 3. Expectations • I’m not here to divulge secrets • Teach a man to fish, not give him a fish • You will see how easy the pairs trading model is to understand and build • Deployable by retail investors • Seeing is believing • You will not be able to build your own tomorrow… but one day… if you want it badly enough • It’s a small world, so share ideas
  • 4. Why you can beat the professionals • Definition of professionals • Algorithmic does not mean high frequency • HFT is not for retail investors • Strategy capacity • Find a niche
  • 5. Disclaimers • A lot of learning, before this came to fruition • Content here will not be complete due to time constraints • Survivorship bias, Look ahead bias • Model risk, implementation risk, execution risk, over parameterization • Random models can have profitable backtests • I’m not responsible if you lose money
  • 6. Algorithmic Trading is Easy • • • • • • What does easy / hard mean? Info, books, tools, cheaply or freely available Yahoo, Google, Morningstar, Edgar, Quantopian Visual Studio Express, MySQL, R Many textbooks written on the subject Low capital requirements (30K minimum) compared to other ventures • Backtest before you use real money!! • Higher quality data will cost more money
  • 7. My Current System • • • • • Low frequency Single computer, 3 years old Runs on Wifi from my apartment Started coding Oct 2012 Started forward testing play money in March 2013 • Started forward testing real money June 2013 • Current performance consistent with backtests • Just started using cloud computing
  • 10. Backtesting • Profitable backtests does not mean good • You need a valid model • Live trading WILL underperform backtests
  • 11. How A Good Backtest Looks • Consistent, high R Squared • Similar parameters have similar equity curves
  • 12. Key Info From Backtests • • • • Portfolio of 39 pairs Average of 12 to 18 pairs with opened positions, $5400 max drawdown $10k sized legs in backtests, $395 average profit per trade 81.3% winning trades, 4540 trades, 26 day average holding period
  • 13. Pairs Trading Books • Contains Code • Complete manual to putting together your own system
  • 14. Types of Investment Strategies • Mean Reversion – Buy low, sell high / Sell high, buy low – Fundamental Analysis – Statistical Arbitrage • Momentum – Sell low, buy lower / Buy high, sell higher – News • Technical analysis does not work
  • 15. Necessary Math • • • • • • • Basic statistics Linear algebra Standard deviations, regressions Types of distributions (normal, logarithmic) Random walks Stationary (mean reverting) series Cointegration
  • 16. Mean Reversion Example #1 • • • • • Keep an opened mind Everything can be measured in money If you don’t believe me, put it on EBay Fear can be measured in dollars Unwarranted fear -> Sell volatility to profit
  • 17. Mean Reversion Example #2 • • • • • Stocks move in random walks Some stocks move together Spread between the stocks are mean reverting Buy low, sell high on the spread Statistical arbitrage means you win most of the time, not all the time • Buyouts and bankruptcies result in large losses • Diversification is a must • Learn some corporate finance / fundamentals
  • 18. Case Study, GLD and IAU • Two gold ETF’s • Pull end of day prices from Yahoo Finance into csv files • Do a linear regression • Calculate the spread • Graph of spread is mean reverting • Find #Stdevs to enter / exit trade • Optimize parameters
  • 19. Next Steps • Try higher quality data • You could trade this by hand + excel, but better to automate the process • Many systems are built in excel • Optimize the code • Backtest until you find a profitable strategy • Use a brokerage with an API, sample code • Forward test with play money
  • 20. Next Steps Part 2 • • • • • • • Execution, order, position management Test with small amounts of real money Tweak your system Ramp up trading size if still profitable Exhaust universe for the strategy Find new strategies Never stop learning
  • 21. The End • Ernest P Chan - Quantitative Trading: How to Build Your Own Algorithmic Trading Business (Wiley Trading) • Ganapathy Vidyamurthy - Pairs Trading: Quantitative Methods and Analysis (Wiley Finance) • R - http://www.r-project.org/ (like Matlab) Yahoo, Google, Morningstar, Edgar, Quantopian • Visual Studio Express, MySQL, R • garychan7@gmail.com • https://twitter.com/RITrading - I tweet my trades here