1 / 79

Real-Time Signalextraction (MDFA) and Algorithmic Trading

Real-Time Signalextraction (MDFA) and Algorithmic Trading. marc.wildi@zhaw.ch http://blog.zhaw.ch/idp/sefblog http://www.idp.zhaw.ch/usri http://www.idp.zhaw.ch/MDFA-XT http://www.idp.zhaw.ch/sef. Background. Hybrid math/econ. IDP-ZHAW → Projects with econ. partners Forecasting

jessie
Download Presentation

Real-Time Signalextraction (MDFA) and Algorithmic Trading

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Real-Time Signalextraction (MDFA) and Algorithmic Trading marc.wildi@zhaw.ch http://blog.zhaw.ch/idp/sefblog http://www.idp.zhaw.ch/usri http://www.idp.zhaw.ch/MDFA-XT http://www.idp.zhaw.ch/sef

  2. Background • Hybrid math/econ. • IDP-ZHAW → Projects with econ. partners • Forecasting • Health-care (cost expenditures) • Macro (real-time economic indicators: EURI Eurostat-project) • Finance (MDFA-XT, large hedge-fund) • Engineering (Telecom, load forecasts) • Eclectic/disparate range of applications • Common methodological approach(es) • In-house developments: (M)DFA • R-package “signalextraction” on CRAN

  3. A Classical Algorithmic Trading Approach Timing System SP500 Daily Closures MA(200), Equally Weighted

  4. P.5 (drawdowns), p.7 (timing system), p.10 (performance)

  5. Problem: (Too) Long Periods with Systematic Underperformance

  6. Why do Traders Frequently Adopt/Prefer Filter Crossings? Filter Characteristics Why MDFA? http://blog.zhaw.ch/idp/sefblog/index.php?/archives/54-Intermezzo-Why-do-Traders-Often-Consider-Crossings-of-Trading-Filter-Pairs.html

  7. Log-MSCI and MA(45)

  8. Filter Characteristics • Amplitude function: • Which signal is extracted? • Time-shift: • How large is the delay?

  9. Timing System (MSCI-Weekly)

  10. More General Crossings: MA(45,black)-MA(22,red)=crossing (blue)

  11. Conclusions • Crossing-rules are (an unnecessarily cumbersome way of implementing)bandpass filters • Crossing-rules (bandpass) have small time delays • Why MDFA? • Flexible efficient real-time (bandpass) design • Fast and smooth

  12. Fundamental Trading http://www.idp.zhaw.ch/usri SP500 http://blog.zhaw.ch/idp/sefblog

  13. USRI (MDFA) and SP500

  14. Performance in Logs

  15. Student Thesis p.19 Long Term Performances Fundam. Trading

  16. Conclusion • Damp or avoid all massive recession draw-downs effectively • Ideal for risk-averse investors (pension funds) • Fundamental Trading: truly out of sample • Focus on Macro-data (finance data ignored) • NBER • Disadvantage: `insufficiently active’ • Texto: «Difficult to justify fees»

  17. MDFA-XT http://www.idp.zhaw.ch/MDFA-XT MSCI (+BRIC) http://blog.zhaw.ch/idp/sefblog

  18. Log-MSCI and MA(45)

  19. MDFA vs. MA(45) weekly dataMDFA (blue) Faster

  20. Five Trading Filters Different Trading Frequencies

  21. Filter « Unfrequent »

  22. Filter « Unfrequent to Mid»

  23. Filter « Mid »

  24. Filter « Frequent »

  25. Conclusion • Higher trading frequencies are associated with • Bandpass shifted to the right • More flexible than traditional filter-crossings • Smaller delays/time shifts

  26. Performances

  27. Setting • Total degenerative trading costs of 0.3% per order (small fund) • Long only • No risk free interest rates

  28. Performance « Unfrequent »

  29. Performance « Unfrequent to Mid»

  30. Performance « Mid»

  31. Performance « Mid to Frequent »

  32. Performance « Frequent »

  33. Conclusions • Higher trading frequencies are associated with • Slight reduction of performance • Larger draw-downs • USRI would avoid draw-downs and then the performance would improve • Increased market activity (fees!) • Combination with USRI possible (recommended) • Filters will be available on-line in late July

  34. Real-Time Signalextraction A SEF-Blog Excel-Tutorial http://blog.zhaw.ch/idp/sefblog

  35. Excel-Tutorial on SEF-Blog • http://blog.zhaw.ch/idp/sefblog/index.php?/archives/65-Real-Time-Detection-of-Turning-Points-a-Tutorial-Part-I-Mean-Square-Error-Norm.html • http://blog.zhaw.ch/idp/sefblog/index.php?/archives/67-Real-Time-Detection-of-Turning-Points-a-Tutorial-Part-II-Emphasizing-Turning-Points.html

  36. Purposes • Yoga exercises to detach from main-stream maximum likelihood world • First Blog-entry: how traditional econometric approach `works’ • Intuitively straightforward • Good (optimal) mean-square performances • People have become lazy-minded • Second Blog-Entry: the early detection of turning points • Is a (strongly) counterintuitive exercise • Generates seemingly (strongly) misspecified filter designs • Warning → Learning (→ Illumination?)

  37. Excel-Tutorial on SEF-Blog

  38. Real-Time Signalextraction 1. Traditional Econometrics

  39. Task: Extract the Cycle

  40. Standard Econometric Approach • Proceeding: • Identify a time-series model (ARIMA/state space) • Extend the series by optimal forecasts • Apply the symmetric filter on the extended time series • X-12-ARIMA, TRAMO, STAMP, R/S+… • Claim: • One-sided filter is optimal (mean-square sense) • Assumption: DGP/true model

  41. ARMA(2,2)-Diagnostics

  42. Real-Time Model-Based Filter

  43. Real-Time Signalextraction 2. Excel Example (Replication of Model-Based Approach)

  44. Parameters (ARMA(2,2)-FILTER) • ARMA(2,2)-Filter (not model)

  45. A Seemingly Virtuous Design (amplitude)

  46. A Seemingly Virtuous Design (time shift)

  47. A Seemingly Virtuous Design(Peak Correlation) • Correlation between real-time estimate and cycle as a function of time-lag k

  48. Signal and Estimate(Estimate: Filter Tweaked by Hand)

  49. Real-Time Signalextraction 3. Excel Example (Turning Point Revelation)

  50. Parameters ARMA(2,2)-FILTERSeemingly Misspecified Design • ARMA(2,2)-Filter (not model)

More Related