SlideShare a Scribd company logo
1 of 18
MATLAB 2011A
  SECRETS
 by Bryan Downing
   Powerpoint Templates
                          Page 1
First Page :


1. Online business which focuses on
   building trading models for the finance
   industry. Revenue model is
   subscription based with additional
   potential auxiliary revenue.

2. Financial models are used to generate
   dozens of daily reports of high
   performing equities and other market
   securities to help traders, researchers,
   and analysts to optimize their trading
   decisions.



        Powerpoint Templates
 QUANTLABS.NET                      Page 2
Chosen Technologies: MATLAB



 1. MATLAB         is      the    investment
    community’s #1 commerical statistical
    tool     for      financial     research,
    prototyping, etc..
 2. Has excellent resources including
    online demos, documentation, and
    community support.
 3. Enables    you      to      quickly   get
    experienced as compared to R or other
    similar tools.
 4. Free MATLAB open source clones
    include Octave or SciLab but not
    extensible.
         Powerpoint Templates
  QUANTLABS.NET                       Page 3
Chosen Technologies: C++




1. C++ is the primary development
   programming       language   used    for
   implementing re-coded      models and
   strategies. It is commonly used to
   develop trading platforms as well.
2. C++ is fastest possible programming
   language as it gets applications
   closest to the target operating system.
   For example, there is no garbage
   collector as in Java.
3. C++ is very portable.

        Powerpoint Templates
 QUANTLABS.NET                      Page 4
Highlights :
    Disclaimer: Not teaching Matlab, C++, or C#.


1. MATLAB Coder Toolbox demo of
   HelloWorld.m script to C++
2. Import MATLAB HelloWorld Converted
   project into Visual Studio C++ Express
   and use it in a C# client application.
   Quick high light of use in Visual C++.
3. Discussion of a popular Open Source
   Trading platform in C#
4. List components of a C++ primitive
   trading platform.
5. MATLAB import of Yahoo Finance data
6. Export MATLAB data into MYSQL
   database.



       Powerpoint Templates
QUANTLABS.NET                             Page 5
Helpful URLS :

1. YouTube Channel Video tutorials at
   www.Youtube.com/quantlabs
2. Online   code samples       and    600+
   research           white        papers:
   www.quantlabs.net/labs
3. Daily blog updates: www.quantlabs.net/blog
4. PRIVATE Email 1000+ opt-in list.
   Register at www.quantlabs.net
5. Tech     quant       LinkedIn     group:
    http://www.linkedin.com/groups/Quant-Matlab-C-C-Java-
    3427378?goback=%2Egna_3427378
6. Toronto    based     Meetup                        group:
   www.Meetup.com/quant-finance




         Powerpoint Templates
 QUANTLABS.NET                                        Page 6
MATLAB Coder Toolbox :

1. Could use MATLAB Builder JA toolbox
   for a Java or .NET assembler bridge.
   This does does not generate native code
   (e.g. Java) but enables you to access
   through a compiled MEX file.
2. MATLAB Coder Toolbox works as of
   MATLAB 2011A. Most expensive toolbox
   available at $6K.
3. Coder converts Matlab M File scripts
   (e.g.Model or Algorithm) into native C
   or C++.
4. Removes need of extra coding to
   manually convert MATLAB M file to
   C/C++. Saves times in optimizing C or
   C++ source files.

         Powerpoint Templates
  QUANTLABS.NET                    Page 7
DLL Creation and Use :

                        DEMO

Demo Matlab Coder Toolbox to generate
        C++ from HelloWorld.m
         Coder GUI to open
     C:matlab_m_scriptscoder_test
              Untitled1.prj

          Build conversion results in
C:matlab_m_scriptscoder_testcodegenlibhell
                     o_world




      Powerpoint Templates
        QUANTLABS.NET                   Page 8
DLL Creation and Use :

1. Create Visual Studio 2010 C++ DLL
   solution.
2. Copy converted C++ code into project.
3. Manipulate      source      code      for
   compatibility with Visual C++.
4. Build DLL or Static Library (LIB) for re-
   use
5. Create C# client application to access
   DLL.
6. There is a 3 part video series at
   QuantLabs Youtube channel.




         Powerpoint Templates
  QUANTLABS.NET                      Page 9
DLL Creation and Use :




              DEMO
C:UsersratmanDocumentsVisual
        Studio 2010Projects

    HelloWorldMatlab C++ sln
    HelloWorldMgdDLLC++ sln
    HelloWorldClientCS C# sln



   Powerpoint Templates
     QUANTLABS.NET              Page 10
DLL Resuse in Visual C++:

1. Following instructions at: Walkthrough:
   Creating and Using a Dynamic Link Library (C+
   +)       at       http://msdn.microsoft.com/en-
   us/library/ms235636.aspx
2. static __declspec(dllexport) modifier exports
   in DLL to be used by other C++ client
   applications.
3. Integrate converted code into above
   example Visual Studio solution.




         Powerpoint Templates
  QUANTLABS.NET                           Page 11
DLL Creation and Use :

                      DEMO

      Matlab converted code from:
 C:UsersratmanDocumentsVisual Studio
  2010ProjectsShrinkageDynamicLibraryShri
                   nkage - c++

 C:UsersratmanDocumentsVisual Studio
    2010ProjectsShrinkageDynamicLibrary

 ShrinkageDynamic Library C++ sln




    Powerpoint Templates
      QUANTLABS.NET                  Page 12
Potential Trading Broker:



1. LMAX is established in 2010 out of
   London UK.
2. Legitimate   with    British   Financial
   Services   Authority   regulation   and
   Goldman Sachs ownership of 12.5%
3. Supports API trading through FIX
   with .NET, and Java support.
4. No minumum deposit or access fees to
   market multi second tick data.
5. Trade CFD and Forex.
6. Canadians can use LMAX.


         Powerpoint Templates
  QUANTLABS.NET                     Page 13
Trading Platforms:
1. Suggested Open source trading
   platform is TRADELINK.
   http://code.google.com/p/tradelink/
2. Developed in C# and completely free
   with source code. Used by established
   hedge funds and prop shops. Over
   18000 downloads.
3. Connects to multiple brokers but does
   include Interactive Brokers.
4. Has decent documentation and
   community support. There are frequent
   updates after bugs are reported.
5. Various components for tick capture,
   easily converted DLL implementation, &
   other supporting various applications.
6. Various affordable support at
   http://www.pracplay.com/buy
         Powerpoint Templates
  QUANTLABS.NET                    Page 14
Proposed C++ PRIMITIVE
Trading Platform Components:
1. Will be built in C++ for speed,
   portability, and potential HFT scaling
   capabilities.
2. Capable to plug in to LMAX as trading
   broker for CFDs and Forex API
   execuction.
3. Multiple listeners to LMAX tick data of
   chosen currency pairs.
4. Use OTL 4 library to connect to MYSQL
   table for historical tick data.
5. Use TA-Lib library for forex strategy
   development
6. Use QuantLib library for mature quant
   finance modelling needs
7. Import custom Matlab Coder DLLs as
   shown.
         Powerpoint Templates
  QUANTLABS.NET                    Page 15
Proposed C++ PRIMITIVE
Trading Platform Components:




                   OTL 4 DEMO

  Need to Install MYSQL Connector DSN!
  http://www.geeksengine.com/article/mysql-odbc.html

                  otl4 C++ sln




      Powerpoint Templates
         QUANTLABS.NET                         Page 16
MATLAB Yahoo Finance
Data Capture with MYSQL:

1. Need Data Capture Toolbox for example
   MATLAB interaction:
   y = yahoo;
   FastFood = fetch(y, {'ko', 'pep', 'mcd'},'Last')
   FastFood = Last:
   [3x1 double]
   FastFood.Last ans = 42.96 45.71 23.70
2. Alternative for Yahoo data capture at
   http://luminouslogic.com/how-to-download-
   historical-stock-data-into-matlab.htm
3. Get detailed Yahoo download data info
   http://www.gummy-stuff.org/Yahoo-data.htm
4. Demo             with               MYSQL        at:
   http://www.youtube.com/watch?v=5QNyOe79l-s

           Powerpoint Templates
    QUANTLABS.NET                            Page 17
MATLAB Yahoo Finance
Data Capture:




                        DEMO

  C:matlab_m_scriptsdbmysqltest.m




      Powerpoint Templates
        QUANTLABS.NET           Page 18

More Related Content

What's hot

LeanIX GraphQL Lessons Learned - CodeTalks 2017
LeanIX GraphQL Lessons Learned - CodeTalks 2017LeanIX GraphQL Lessons Learned - CodeTalks 2017
LeanIX GraphQL Lessons Learned - CodeTalks 2017LeanIX GmbH
 
Introducing Events and Stream Processing into Nationwide Building Society
Introducing Events and Stream Processing into Nationwide Building SocietyIntroducing Events and Stream Processing into Nationwide Building Society
Introducing Events and Stream Processing into Nationwide Building Societyconfluent
 
Confluent Steaming Webinar - Cape Town - Vitality
Confluent Steaming Webinar - Cape Town - VitalityConfluent Steaming Webinar - Cape Town - Vitality
Confluent Steaming Webinar - Cape Town - Vitalityconfluent
 
DevConf.CZ - Talking Architecture Shop with Anyone
DevConf.CZ - Talking Architecture Shop with AnyoneDevConf.CZ - Talking Architecture Shop with Anyone
DevConf.CZ - Talking Architecture Shop with AnyoneEric D. Schabell
 
From Data Analytics to Fast Data Intelligence
From Data Analytics to Fast Data IntelligenceFrom Data Analytics to Fast Data Intelligence
From Data Analytics to Fast Data IntelligenceTrieu Nguyen
 
Kafka for connected vehicle research | Pavle Bujanovic, Federal Highway Admin...
Kafka for connected vehicle research | Pavle Bujanovic, Federal Highway Admin...Kafka for connected vehicle research | Pavle Bujanovic, Federal Highway Admin...
Kafka for connected vehicle research | Pavle Bujanovic, Federal Highway Admin...HostedbyConfluent
 
How We Made our Tech Organization and Architecture Converge Towards Scalability
How We Made our Tech Organization and Architecture Converge Towards ScalabilityHow We Made our Tech Organization and Architecture Converge Towards Scalability
How We Made our Tech Organization and Architecture Converge Towards ScalabilityZalando Technology
 
Fifth elephant 2017 Data Pipeline workshop
Fifth elephant 2017 Data Pipeline workshopFifth elephant 2017 Data Pipeline workshop
Fifth elephant 2017 Data Pipeline workshopKetan Khairnar
 
Introduction to Open Services for Lifecycle Collaboration (OSLC)
Introduction to Open Services for Lifecycle Collaboration (OSLC)Introduction to Open Services for Lifecycle Collaboration (OSLC)
Introduction to Open Services for Lifecycle Collaboration (OSLC)Axel Reichwein
 
APIdays Helsinki 2019 - Beyond REST: GraphQL API Management with Amit Acharya...
APIdays Helsinki 2019 - Beyond REST: GraphQL API Management with Amit Acharya...APIdays Helsinki 2019 - Beyond REST: GraphQL API Management with Amit Acharya...
APIdays Helsinki 2019 - Beyond REST: GraphQL API Management with Amit Acharya...apidays
 
Austin API Summit 2018: Are REST APIs Still Relevant Today?
Austin API Summit 2018: Are REST APIs Still Relevant Today?Austin API Summit 2018: Are REST APIs Still Relevant Today?
Austin API Summit 2018: Are REST APIs Still Relevant Today?LaunchAny
 
From Data Science to MLOps
From Data Science to MLOpsFrom Data Science to MLOps
From Data Science to MLOpsCarl W. Handlin
 
Deploying GraphQL Services as Managed APIs
Deploying GraphQL Services as Managed APIsDeploying GraphQL Services as Managed APIs
Deploying GraphQL Services as Managed APIsWSO2
 
databricks ml flow demonstration using automatic features engineering
databricks ml flow demonstration using automatic features engineeringdatabricks ml flow demonstration using automatic features engineering
databricks ml flow demonstration using automatic features engineeringMohamed MEJDOUBI
 
Koneksys Presentation March 2021
Koneksys Presentation March 2021Koneksys Presentation March 2021
Koneksys Presentation March 2021Axel Reichwein
 
Take Your Reports to Any Screen with Telerik Reporting
Take Your Reports to Any Screen with Telerik ReportingTake Your Reports to Any Screen with Telerik Reporting
Take Your Reports to Any Screen with Telerik ReportingLohith Goudagere Nagaraj
 
Achieving Real-Time Analytics at Hermes | Zulf Qureshi, HVR and Dr. Stefan Ro...
Achieving Real-Time Analytics at Hermes | Zulf Qureshi, HVR and Dr. Stefan Ro...Achieving Real-Time Analytics at Hermes | Zulf Qureshi, HVR and Dr. Stefan Ro...
Achieving Real-Time Analytics at Hermes | Zulf Qureshi, HVR and Dr. Stefan Ro...HostedbyConfluent
 
Building and Delivering Reports from your Web and Mobile Apps with Telerik Re...
Building and Delivering Reports from your Web and Mobile Apps with Telerik Re...Building and Delivering Reports from your Web and Mobile Apps with Telerik Re...
Building and Delivering Reports from your Web and Mobile Apps with Telerik Re...Lohith Goudagere Nagaraj
 
apidays LIVE Singapore 2021 - REST the Events - REST APIs for Event-Driven Ar...
apidays LIVE Singapore 2021 - REST the Events - REST APIs for Event-Driven Ar...apidays LIVE Singapore 2021 - REST the Events - REST APIs for Event-Driven Ar...
apidays LIVE Singapore 2021 - REST the Events - REST APIs for Event-Driven Ar...apidays
 

What's hot (20)

LeanIX GraphQL Lessons Learned - CodeTalks 2017
LeanIX GraphQL Lessons Learned - CodeTalks 2017LeanIX GraphQL Lessons Learned - CodeTalks 2017
LeanIX GraphQL Lessons Learned - CodeTalks 2017
 
Introducing Events and Stream Processing into Nationwide Building Society
Introducing Events and Stream Processing into Nationwide Building SocietyIntroducing Events and Stream Processing into Nationwide Building Society
Introducing Events and Stream Processing into Nationwide Building Society
 
Confluent Steaming Webinar - Cape Town - Vitality
Confluent Steaming Webinar - Cape Town - VitalityConfluent Steaming Webinar - Cape Town - Vitality
Confluent Steaming Webinar - Cape Town - Vitality
 
DevConf.CZ - Talking Architecture Shop with Anyone
DevConf.CZ - Talking Architecture Shop with AnyoneDevConf.CZ - Talking Architecture Shop with Anyone
DevConf.CZ - Talking Architecture Shop with Anyone
 
From Data Analytics to Fast Data Intelligence
From Data Analytics to Fast Data IntelligenceFrom Data Analytics to Fast Data Intelligence
From Data Analytics to Fast Data Intelligence
 
Kafka for connected vehicle research | Pavle Bujanovic, Federal Highway Admin...
Kafka for connected vehicle research | Pavle Bujanovic, Federal Highway Admin...Kafka for connected vehicle research | Pavle Bujanovic, Federal Highway Admin...
Kafka for connected vehicle research | Pavle Bujanovic, Federal Highway Admin...
 
How We Made our Tech Organization and Architecture Converge Towards Scalability
How We Made our Tech Organization and Architecture Converge Towards ScalabilityHow We Made our Tech Organization and Architecture Converge Towards Scalability
How We Made our Tech Organization and Architecture Converge Towards Scalability
 
Fifth elephant 2017 Data Pipeline workshop
Fifth elephant 2017 Data Pipeline workshopFifth elephant 2017 Data Pipeline workshop
Fifth elephant 2017 Data Pipeline workshop
 
Introduction to Open Services for Lifecycle Collaboration (OSLC)
Introduction to Open Services for Lifecycle Collaboration (OSLC)Introduction to Open Services for Lifecycle Collaboration (OSLC)
Introduction to Open Services for Lifecycle Collaboration (OSLC)
 
APIdays Helsinki 2019 - Beyond REST: GraphQL API Management with Amit Acharya...
APIdays Helsinki 2019 - Beyond REST: GraphQL API Management with Amit Acharya...APIdays Helsinki 2019 - Beyond REST: GraphQL API Management with Amit Acharya...
APIdays Helsinki 2019 - Beyond REST: GraphQL API Management with Amit Acharya...
 
Austin API Summit 2018: Are REST APIs Still Relevant Today?
Austin API Summit 2018: Are REST APIs Still Relevant Today?Austin API Summit 2018: Are REST APIs Still Relevant Today?
Austin API Summit 2018: Are REST APIs Still Relevant Today?
 
From Data Science to MLOps
From Data Science to MLOpsFrom Data Science to MLOps
From Data Science to MLOps
 
Deploying GraphQL Services as Managed APIs
Deploying GraphQL Services as Managed APIsDeploying GraphQL Services as Managed APIs
Deploying GraphQL Services as Managed APIs
 
GraphQL Basics
GraphQL BasicsGraphQL Basics
GraphQL Basics
 
databricks ml flow demonstration using automatic features engineering
databricks ml flow demonstration using automatic features engineeringdatabricks ml flow demonstration using automatic features engineering
databricks ml flow demonstration using automatic features engineering
 
Koneksys Presentation March 2021
Koneksys Presentation March 2021Koneksys Presentation March 2021
Koneksys Presentation March 2021
 
Take Your Reports to Any Screen with Telerik Reporting
Take Your Reports to Any Screen with Telerik ReportingTake Your Reports to Any Screen with Telerik Reporting
Take Your Reports to Any Screen with Telerik Reporting
 
Achieving Real-Time Analytics at Hermes | Zulf Qureshi, HVR and Dr. Stefan Ro...
Achieving Real-Time Analytics at Hermes | Zulf Qureshi, HVR and Dr. Stefan Ro...Achieving Real-Time Analytics at Hermes | Zulf Qureshi, HVR and Dr. Stefan Ro...
Achieving Real-Time Analytics at Hermes | Zulf Qureshi, HVR and Dr. Stefan Ro...
 
Building and Delivering Reports from your Web and Mobile Apps with Telerik Re...
Building and Delivering Reports from your Web and Mobile Apps with Telerik Re...Building and Delivering Reports from your Web and Mobile Apps with Telerik Re...
Building and Delivering Reports from your Web and Mobile Apps with Telerik Re...
 
apidays LIVE Singapore 2021 - REST the Events - REST APIs for Event-Driven Ar...
apidays LIVE Singapore 2021 - REST the Events - REST APIs for Event-Driven Ar...apidays LIVE Singapore 2021 - REST the Events - REST APIs for Event-Driven Ar...
apidays LIVE Singapore 2021 - REST the Events - REST APIs for Event-Driven Ar...
 

Similar to MATLAB Secrets for Financial Modeling

23 Top .Net Core Libraries List Every Developer Must Know
23 Top .Net Core Libraries List Every Developer Must Know23 Top .Net Core Libraries List Every Developer Must Know
23 Top .Net Core Libraries List Every Developer Must KnowKaty Slemon
 
Webcast Presentation: Be lean. Be agile. Work together with DevOps Services (...
Webcast Presentation: Be lean. Be agile. Work together with DevOps Services (...Webcast Presentation: Be lean. Be agile. Work together with DevOps Services (...
Webcast Presentation: Be lean. Be agile. Work together with DevOps Services (...GRUC
 
01 web 2.0 - more than a pretty face for soa
01   web 2.0 - more than a pretty face for soa01   web 2.0 - more than a pretty face for soa
01 web 2.0 - more than a pretty face for soaTechnology Transfer
 
49.INS2065.Computer Based Technologies.TA.NguyenDucAnh.pdf
49.INS2065.Computer Based Technologies.TA.NguyenDucAnh.pdf49.INS2065.Computer Based Technologies.TA.NguyenDucAnh.pdf
49.INS2065.Computer Based Technologies.TA.NguyenDucAnh.pdfcNguyn506241
 
HTML5 Up and Running
HTML5 Up and RunningHTML5 Up and Running
HTML5 Up and RunningCodemotion
 
MS Day EPITA 2010: Visual Studio 2010 et Framework .NET 4.0
MS Day EPITA 2010: Visual Studio 2010 et Framework .NET 4.0MS Day EPITA 2010: Visual Studio 2010 et Framework .NET 4.0
MS Day EPITA 2010: Visual Studio 2010 et Framework .NET 4.0Thomas Conté
 
Hybrid Cloud, Kubeflow and Tensorflow Extended [TFX]
Hybrid Cloud, Kubeflow and Tensorflow Extended [TFX]Hybrid Cloud, Kubeflow and Tensorflow Extended [TFX]
Hybrid Cloud, Kubeflow and Tensorflow Extended [TFX]Animesh Singh
 
Pitfalls of machine learning in production
Pitfalls of machine learning in productionPitfalls of machine learning in production
Pitfalls of machine learning in productionAntoine Sauray
 
Comparison of Programming Platforms
Comparison of Programming PlatformsComparison of Programming Platforms
Comparison of Programming PlatformsAnup Hariharan Nair
 
Using advanced C# features in Sharepoint development
Using advanced C# features in Sharepoint developmentUsing advanced C# features in Sharepoint development
Using advanced C# features in Sharepoint developmentsadomovalex
 
Using Clojure, NoSQL Databases and Functional-Style JavaScript to Write Gext-...
Using Clojure, NoSQL Databases and Functional-Style JavaScript to Write Gext-...Using Clojure, NoSQL Databases and Functional-Style JavaScript to Write Gext-...
Using Clojure, NoSQL Databases and Functional-Style JavaScript to Write Gext-...Stefan Richter
 
Abstracting the UI Layer for WebSphere Portal
Abstracting the UI Layer for WebSphere PortalAbstracting the UI Layer for WebSphere Portal
Abstracting the UI Layer for WebSphere PortalPerficient, Inc.
 
A simplest way to reconstruct .Net Framework - CRB Tech
A simplest way to reconstruct .Net Framework - CRB TechA simplest way to reconstruct .Net Framework - CRB Tech
A simplest way to reconstruct .Net Framework - CRB TechPooja Gaikwad
 
A simplest-way-to-reconstruct-.net-framework
A simplest-way-to-reconstruct-.net-frameworkA simplest-way-to-reconstruct-.net-framework
A simplest-way-to-reconstruct-.net-frameworksonia merchant
 
Tech leaders guide to effective building of machine learning products
Tech leaders guide to effective building of machine learning productsTech leaders guide to effective building of machine learning products
Tech leaders guide to effective building of machine learning productsGianmario Spacagna
 
DOT NET TRaining
DOT NET TRainingDOT NET TRaining
DOT NET TRainingsunil kumar
 
Webinar: Começando seus trabalhos com Machine Learning utilizando ferramentas...
Webinar: Começando seus trabalhos com Machine Learning utilizando ferramentas...Webinar: Começando seus trabalhos com Machine Learning utilizando ferramentas...
Webinar: Começando seus trabalhos com Machine Learning utilizando ferramentas...Embarcados
 
RTP Bluemix Meetup April 20th 2016
RTP Bluemix Meetup April 20th 2016RTP Bluemix Meetup April 20th 2016
RTP Bluemix Meetup April 20th 2016Tom Boucher
 

Similar to MATLAB Secrets for Financial Modeling (20)

23 Top .Net Core Libraries List Every Developer Must Know
23 Top .Net Core Libraries List Every Developer Must Know23 Top .Net Core Libraries List Every Developer Must Know
23 Top .Net Core Libraries List Every Developer Must Know
 
Webcast Presentation: Be lean. Be agile. Work together with DevOps Services (...
Webcast Presentation: Be lean. Be agile. Work together with DevOps Services (...Webcast Presentation: Be lean. Be agile. Work together with DevOps Services (...
Webcast Presentation: Be lean. Be agile. Work together with DevOps Services (...
 
01 web 2.0 - more than a pretty face for soa
01   web 2.0 - more than a pretty face for soa01   web 2.0 - more than a pretty face for soa
01 web 2.0 - more than a pretty face for soa
 
49.INS2065.Computer Based Technologies.TA.NguyenDucAnh.pdf
49.INS2065.Computer Based Technologies.TA.NguyenDucAnh.pdf49.INS2065.Computer Based Technologies.TA.NguyenDucAnh.pdf
49.INS2065.Computer Based Technologies.TA.NguyenDucAnh.pdf
 
HTML5 Up and Running
HTML5 Up and RunningHTML5 Up and Running
HTML5 Up and Running
 
MS Day EPITA 2010: Visual Studio 2010 et Framework .NET 4.0
MS Day EPITA 2010: Visual Studio 2010 et Framework .NET 4.0MS Day EPITA 2010: Visual Studio 2010 et Framework .NET 4.0
MS Day EPITA 2010: Visual Studio 2010 et Framework .NET 4.0
 
ABP.pptx
ABP.pptxABP.pptx
ABP.pptx
 
Hybrid Cloud, Kubeflow and Tensorflow Extended [TFX]
Hybrid Cloud, Kubeflow and Tensorflow Extended [TFX]Hybrid Cloud, Kubeflow and Tensorflow Extended [TFX]
Hybrid Cloud, Kubeflow and Tensorflow Extended [TFX]
 
Pitfalls of machine learning in production
Pitfalls of machine learning in productionPitfalls of machine learning in production
Pitfalls of machine learning in production
 
C# with Renas
C# with RenasC# with Renas
C# with Renas
 
Comparison of Programming Platforms
Comparison of Programming PlatformsComparison of Programming Platforms
Comparison of Programming Platforms
 
Using advanced C# features in Sharepoint development
Using advanced C# features in Sharepoint developmentUsing advanced C# features in Sharepoint development
Using advanced C# features in Sharepoint development
 
Using Clojure, NoSQL Databases and Functional-Style JavaScript to Write Gext-...
Using Clojure, NoSQL Databases and Functional-Style JavaScript to Write Gext-...Using Clojure, NoSQL Databases and Functional-Style JavaScript to Write Gext-...
Using Clojure, NoSQL Databases and Functional-Style JavaScript to Write Gext-...
 
Abstracting the UI Layer for WebSphere Portal
Abstracting the UI Layer for WebSphere PortalAbstracting the UI Layer for WebSphere Portal
Abstracting the UI Layer for WebSphere Portal
 
A simplest way to reconstruct .Net Framework - CRB Tech
A simplest way to reconstruct .Net Framework - CRB TechA simplest way to reconstruct .Net Framework - CRB Tech
A simplest way to reconstruct .Net Framework - CRB Tech
 
A simplest-way-to-reconstruct-.net-framework
A simplest-way-to-reconstruct-.net-frameworkA simplest-way-to-reconstruct-.net-framework
A simplest-way-to-reconstruct-.net-framework
 
Tech leaders guide to effective building of machine learning products
Tech leaders guide to effective building of machine learning productsTech leaders guide to effective building of machine learning products
Tech leaders guide to effective building of machine learning products
 
DOT NET TRaining
DOT NET TRainingDOT NET TRaining
DOT NET TRaining
 
Webinar: Começando seus trabalhos com Machine Learning utilizando ferramentas...
Webinar: Começando seus trabalhos com Machine Learning utilizando ferramentas...Webinar: Começando seus trabalhos com Machine Learning utilizando ferramentas...
Webinar: Começando seus trabalhos com Machine Learning utilizando ferramentas...
 
RTP Bluemix Meetup April 20th 2016
RTP Bluemix Meetup April 20th 2016RTP Bluemix Meetup April 20th 2016
RTP Bluemix Meetup April 20th 2016
 

Recently uploaded

The Economic History of the U.S. Lecture 26.pdf
The Economic History of the U.S. Lecture 26.pdfThe Economic History of the U.S. Lecture 26.pdf
The Economic History of the U.S. Lecture 26.pdfGale Pooley
 
The Economic History of the U.S. Lecture 23.pdf
The Economic History of the U.S. Lecture 23.pdfThe Economic History of the U.S. Lecture 23.pdf
The Economic History of the U.S. Lecture 23.pdfGale Pooley
 
Independent Call Girl Number in Kurla Mumbai📲 Pooja Nehwal 9892124323 💞 Full ...
Independent Call Girl Number in Kurla Mumbai📲 Pooja Nehwal 9892124323 💞 Full ...Independent Call Girl Number in Kurla Mumbai📲 Pooja Nehwal 9892124323 💞 Full ...
Independent Call Girl Number in Kurla Mumbai📲 Pooja Nehwal 9892124323 💞 Full ...Pooja Nehwal
 
The Economic History of the U.S. Lecture 20.pdf
The Economic History of the U.S. Lecture 20.pdfThe Economic History of the U.S. Lecture 20.pdf
The Economic History of the U.S. Lecture 20.pdfGale Pooley
 
Log your LOA pain with Pension Lab's brilliant campaign
Log your LOA pain with Pension Lab's brilliant campaignLog your LOA pain with Pension Lab's brilliant campaign
Log your LOA pain with Pension Lab's brilliant campaignHenry Tapper
 
The Economic History of the U.S. Lecture 30.pdf
The Economic History of the U.S. Lecture 30.pdfThe Economic History of the U.S. Lecture 30.pdf
The Economic History of the U.S. Lecture 30.pdfGale Pooley
 
The Economic History of the U.S. Lecture 19.pdf
The Economic History of the U.S. Lecture 19.pdfThe Economic History of the U.S. Lecture 19.pdf
The Economic History of the U.S. Lecture 19.pdfGale Pooley
 
Call US 📞 9892124323 ✅ Kurla Call Girls In Kurla ( Mumbai ) secure service
Call US 📞 9892124323 ✅ Kurla Call Girls In Kurla ( Mumbai ) secure serviceCall US 📞 9892124323 ✅ Kurla Call Girls In Kurla ( Mumbai ) secure service
Call US 📞 9892124323 ✅ Kurla Call Girls In Kurla ( Mumbai ) secure servicePooja Nehwal
 
High Class Call Girls Nashik Maya 7001305949 Independent Escort Service Nashik
High Class Call Girls Nashik Maya 7001305949 Independent Escort Service NashikHigh Class Call Girls Nashik Maya 7001305949 Independent Escort Service Nashik
High Class Call Girls Nashik Maya 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
05_Annelore Lenoir_Docbyte_MeetupDora&Cybersecurity.pptx
05_Annelore Lenoir_Docbyte_MeetupDora&Cybersecurity.pptx05_Annelore Lenoir_Docbyte_MeetupDora&Cybersecurity.pptx
05_Annelore Lenoir_Docbyte_MeetupDora&Cybersecurity.pptxFinTech Belgium
 
Call Girls Service Nagpur Maya Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Maya Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Maya Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Maya Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Top Rated Pune Call Girls Viman Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Sex...
Top Rated  Pune Call Girls Viman Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Sex...Top Rated  Pune Call Girls Viman Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Sex...
Top Rated Pune Call Girls Viman Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Sex...Call Girls in Nagpur High Profile
 
VVIP Pune Call Girls Katraj (7001035870) Pune Escorts Nearby with Complete Sa...
VVIP Pune Call Girls Katraj (7001035870) Pune Escorts Nearby with Complete Sa...VVIP Pune Call Girls Katraj (7001035870) Pune Escorts Nearby with Complete Sa...
VVIP Pune Call Girls Katraj (7001035870) Pune Escorts Nearby with Complete Sa...Call Girls in Nagpur High Profile
 
The Economic History of the U.S. Lecture 25.pdf
The Economic History of the U.S. Lecture 25.pdfThe Economic History of the U.S. Lecture 25.pdf
The Economic History of the U.S. Lecture 25.pdfGale Pooley
 

Recently uploaded (20)

The Economic History of the U.S. Lecture 26.pdf
The Economic History of the U.S. Lecture 26.pdfThe Economic History of the U.S. Lecture 26.pdf
The Economic History of the U.S. Lecture 26.pdf
 
VIP Call Girl Service Andheri West ⚡ 9920725232 What It Takes To Be The Best ...
VIP Call Girl Service Andheri West ⚡ 9920725232 What It Takes To Be The Best ...VIP Call Girl Service Andheri West ⚡ 9920725232 What It Takes To Be The Best ...
VIP Call Girl Service Andheri West ⚡ 9920725232 What It Takes To Be The Best ...
 
The Economic History of the U.S. Lecture 23.pdf
The Economic History of the U.S. Lecture 23.pdfThe Economic History of the U.S. Lecture 23.pdf
The Economic History of the U.S. Lecture 23.pdf
 
Independent Call Girl Number in Kurla Mumbai📲 Pooja Nehwal 9892124323 💞 Full ...
Independent Call Girl Number in Kurla Mumbai📲 Pooja Nehwal 9892124323 💞 Full ...Independent Call Girl Number in Kurla Mumbai📲 Pooja Nehwal 9892124323 💞 Full ...
Independent Call Girl Number in Kurla Mumbai📲 Pooja Nehwal 9892124323 💞 Full ...
 
The Economic History of the U.S. Lecture 20.pdf
The Economic History of the U.S. Lecture 20.pdfThe Economic History of the U.S. Lecture 20.pdf
The Economic History of the U.S. Lecture 20.pdf
 
Log your LOA pain with Pension Lab's brilliant campaign
Log your LOA pain with Pension Lab's brilliant campaignLog your LOA pain with Pension Lab's brilliant campaign
Log your LOA pain with Pension Lab's brilliant campaign
 
The Economic History of the U.S. Lecture 30.pdf
The Economic History of the U.S. Lecture 30.pdfThe Economic History of the U.S. Lecture 30.pdf
The Economic History of the U.S. Lecture 30.pdf
 
The Economic History of the U.S. Lecture 19.pdf
The Economic History of the U.S. Lecture 19.pdfThe Economic History of the U.S. Lecture 19.pdf
The Economic History of the U.S. Lecture 19.pdf
 
VIP Independent Call Girls in Bandra West 🌹 9920725232 ( Call Me ) Mumbai Esc...
VIP Independent Call Girls in Bandra West 🌹 9920725232 ( Call Me ) Mumbai Esc...VIP Independent Call Girls in Bandra West 🌹 9920725232 ( Call Me ) Mumbai Esc...
VIP Independent Call Girls in Bandra West 🌹 9920725232 ( Call Me ) Mumbai Esc...
 
Call US 📞 9892124323 ✅ Kurla Call Girls In Kurla ( Mumbai ) secure service
Call US 📞 9892124323 ✅ Kurla Call Girls In Kurla ( Mumbai ) secure serviceCall US 📞 9892124323 ✅ Kurla Call Girls In Kurla ( Mumbai ) secure service
Call US 📞 9892124323 ✅ Kurla Call Girls In Kurla ( Mumbai ) secure service
 
High Class Call Girls Nashik Maya 7001305949 Independent Escort Service Nashik
High Class Call Girls Nashik Maya 7001305949 Independent Escort Service NashikHigh Class Call Girls Nashik Maya 7001305949 Independent Escort Service Nashik
High Class Call Girls Nashik Maya 7001305949 Independent Escort Service Nashik
 
05_Annelore Lenoir_Docbyte_MeetupDora&Cybersecurity.pptx
05_Annelore Lenoir_Docbyte_MeetupDora&Cybersecurity.pptx05_Annelore Lenoir_Docbyte_MeetupDora&Cybersecurity.pptx
05_Annelore Lenoir_Docbyte_MeetupDora&Cybersecurity.pptx
 
VIP Call Girl in Mira Road 💧 9920725232 ( Call Me ) Get A New Crush Everyday ...
VIP Call Girl in Mira Road 💧 9920725232 ( Call Me ) Get A New Crush Everyday ...VIP Call Girl in Mira Road 💧 9920725232 ( Call Me ) Get A New Crush Everyday ...
VIP Call Girl in Mira Road 💧 9920725232 ( Call Me ) Get A New Crush Everyday ...
 
Call Girls Service Nagpur Maya Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Maya Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Maya Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Maya Call 7001035870 Meet With Nagpur Escorts
 
(Vedika) Low Rate Call Girls in Pune Call Now 8250077686 Pune Escorts 24x7
(Vedika) Low Rate Call Girls in Pune Call Now 8250077686 Pune Escorts 24x7(Vedika) Low Rate Call Girls in Pune Call Now 8250077686 Pune Escorts 24x7
(Vedika) Low Rate Call Girls in Pune Call Now 8250077686 Pune Escorts 24x7
 
Veritas Interim Report 1 January–31 March 2024
Veritas Interim Report 1 January–31 March 2024Veritas Interim Report 1 January–31 March 2024
Veritas Interim Report 1 January–31 March 2024
 
Top Rated Pune Call Girls Viman Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Sex...
Top Rated  Pune Call Girls Viman Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Sex...Top Rated  Pune Call Girls Viman Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Sex...
Top Rated Pune Call Girls Viman Nagar ⟟ 6297143586 ⟟ Call Me For Genuine Sex...
 
VVIP Pune Call Girls Katraj (7001035870) Pune Escorts Nearby with Complete Sa...
VVIP Pune Call Girls Katraj (7001035870) Pune Escorts Nearby with Complete Sa...VVIP Pune Call Girls Katraj (7001035870) Pune Escorts Nearby with Complete Sa...
VVIP Pune Call Girls Katraj (7001035870) Pune Escorts Nearby with Complete Sa...
 
The Economic History of the U.S. Lecture 25.pdf
The Economic History of the U.S. Lecture 25.pdfThe Economic History of the U.S. Lecture 25.pdf
The Economic History of the U.S. Lecture 25.pdf
 
VIP Independent Call Girls in Andheri 🌹 9920725232 ( Call Me ) Mumbai Escorts...
VIP Independent Call Girls in Andheri 🌹 9920725232 ( Call Me ) Mumbai Escorts...VIP Independent Call Girls in Andheri 🌹 9920725232 ( Call Me ) Mumbai Escorts...
VIP Independent Call Girls in Andheri 🌹 9920725232 ( Call Me ) Mumbai Escorts...
 

MATLAB Secrets for Financial Modeling

  • 1. MATLAB 2011A SECRETS by Bryan Downing Powerpoint Templates Page 1
  • 2. First Page : 1. Online business which focuses on building trading models for the finance industry. Revenue model is subscription based with additional potential auxiliary revenue. 2. Financial models are used to generate dozens of daily reports of high performing equities and other market securities to help traders, researchers, and analysts to optimize their trading decisions. Powerpoint Templates QUANTLABS.NET Page 2
  • 3. Chosen Technologies: MATLAB 1. MATLAB is the investment community’s #1 commerical statistical tool for financial research, prototyping, etc.. 2. Has excellent resources including online demos, documentation, and community support. 3. Enables you to quickly get experienced as compared to R or other similar tools. 4. Free MATLAB open source clones include Octave or SciLab but not extensible. Powerpoint Templates QUANTLABS.NET Page 3
  • 4. Chosen Technologies: C++ 1. C++ is the primary development programming language used for implementing re-coded models and strategies. It is commonly used to develop trading platforms as well. 2. C++ is fastest possible programming language as it gets applications closest to the target operating system. For example, there is no garbage collector as in Java. 3. C++ is very portable. Powerpoint Templates QUANTLABS.NET Page 4
  • 5. Highlights : Disclaimer: Not teaching Matlab, C++, or C#. 1. MATLAB Coder Toolbox demo of HelloWorld.m script to C++ 2. Import MATLAB HelloWorld Converted project into Visual Studio C++ Express and use it in a C# client application. Quick high light of use in Visual C++. 3. Discussion of a popular Open Source Trading platform in C# 4. List components of a C++ primitive trading platform. 5. MATLAB import of Yahoo Finance data 6. Export MATLAB data into MYSQL database. Powerpoint Templates QUANTLABS.NET Page 5
  • 6. Helpful URLS : 1. YouTube Channel Video tutorials at www.Youtube.com/quantlabs 2. Online code samples and 600+ research white papers: www.quantlabs.net/labs 3. Daily blog updates: www.quantlabs.net/blog 4. PRIVATE Email 1000+ opt-in list. Register at www.quantlabs.net 5. Tech quant LinkedIn group: http://www.linkedin.com/groups/Quant-Matlab-C-C-Java- 3427378?goback=%2Egna_3427378 6. Toronto based Meetup group: www.Meetup.com/quant-finance Powerpoint Templates QUANTLABS.NET Page 6
  • 7. MATLAB Coder Toolbox : 1. Could use MATLAB Builder JA toolbox for a Java or .NET assembler bridge. This does does not generate native code (e.g. Java) but enables you to access through a compiled MEX file. 2. MATLAB Coder Toolbox works as of MATLAB 2011A. Most expensive toolbox available at $6K. 3. Coder converts Matlab M File scripts (e.g.Model or Algorithm) into native C or C++. 4. Removes need of extra coding to manually convert MATLAB M file to C/C++. Saves times in optimizing C or C++ source files. Powerpoint Templates QUANTLABS.NET Page 7
  • 8. DLL Creation and Use : DEMO Demo Matlab Coder Toolbox to generate C++ from HelloWorld.m Coder GUI to open C:matlab_m_scriptscoder_test Untitled1.prj Build conversion results in C:matlab_m_scriptscoder_testcodegenlibhell o_world Powerpoint Templates QUANTLABS.NET Page 8
  • 9. DLL Creation and Use : 1. Create Visual Studio 2010 C++ DLL solution. 2. Copy converted C++ code into project. 3. Manipulate source code for compatibility with Visual C++. 4. Build DLL or Static Library (LIB) for re- use 5. Create C# client application to access DLL. 6. There is a 3 part video series at QuantLabs Youtube channel. Powerpoint Templates QUANTLABS.NET Page 9
  • 10. DLL Creation and Use : DEMO C:UsersratmanDocumentsVisual Studio 2010Projects HelloWorldMatlab C++ sln HelloWorldMgdDLLC++ sln HelloWorldClientCS C# sln Powerpoint Templates QUANTLABS.NET Page 10
  • 11. DLL Resuse in Visual C++: 1. Following instructions at: Walkthrough: Creating and Using a Dynamic Link Library (C+ +) at http://msdn.microsoft.com/en- us/library/ms235636.aspx 2. static __declspec(dllexport) modifier exports in DLL to be used by other C++ client applications. 3. Integrate converted code into above example Visual Studio solution. Powerpoint Templates QUANTLABS.NET Page 11
  • 12. DLL Creation and Use : DEMO Matlab converted code from: C:UsersratmanDocumentsVisual Studio 2010ProjectsShrinkageDynamicLibraryShri nkage - c++ C:UsersratmanDocumentsVisual Studio 2010ProjectsShrinkageDynamicLibrary ShrinkageDynamic Library C++ sln Powerpoint Templates QUANTLABS.NET Page 12
  • 13. Potential Trading Broker: 1. LMAX is established in 2010 out of London UK. 2. Legitimate with British Financial Services Authority regulation and Goldman Sachs ownership of 12.5% 3. Supports API trading through FIX with .NET, and Java support. 4. No minumum deposit or access fees to market multi second tick data. 5. Trade CFD and Forex. 6. Canadians can use LMAX. Powerpoint Templates QUANTLABS.NET Page 13
  • 14. Trading Platforms: 1. Suggested Open source trading platform is TRADELINK. http://code.google.com/p/tradelink/ 2. Developed in C# and completely free with source code. Used by established hedge funds and prop shops. Over 18000 downloads. 3. Connects to multiple brokers but does include Interactive Brokers. 4. Has decent documentation and community support. There are frequent updates after bugs are reported. 5. Various components for tick capture, easily converted DLL implementation, & other supporting various applications. 6. Various affordable support at http://www.pracplay.com/buy Powerpoint Templates QUANTLABS.NET Page 14
  • 15. Proposed C++ PRIMITIVE Trading Platform Components: 1. Will be built in C++ for speed, portability, and potential HFT scaling capabilities. 2. Capable to plug in to LMAX as trading broker for CFDs and Forex API execuction. 3. Multiple listeners to LMAX tick data of chosen currency pairs. 4. Use OTL 4 library to connect to MYSQL table for historical tick data. 5. Use TA-Lib library for forex strategy development 6. Use QuantLib library for mature quant finance modelling needs 7. Import custom Matlab Coder DLLs as shown. Powerpoint Templates QUANTLABS.NET Page 15
  • 16. Proposed C++ PRIMITIVE Trading Platform Components: OTL 4 DEMO Need to Install MYSQL Connector DSN! http://www.geeksengine.com/article/mysql-odbc.html otl4 C++ sln Powerpoint Templates QUANTLABS.NET Page 16
  • 17. MATLAB Yahoo Finance Data Capture with MYSQL: 1. Need Data Capture Toolbox for example MATLAB interaction: y = yahoo; FastFood = fetch(y, {'ko', 'pep', 'mcd'},'Last') FastFood = Last: [3x1 double] FastFood.Last ans = 42.96 45.71 23.70 2. Alternative for Yahoo data capture at http://luminouslogic.com/how-to-download- historical-stock-data-into-matlab.htm 3. Get detailed Yahoo download data info http://www.gummy-stuff.org/Yahoo-data.htm 4. Demo with MYSQL at: http://www.youtube.com/watch?v=5QNyOe79l-s Powerpoint Templates QUANTLABS.NET Page 17
  • 18. MATLAB Yahoo Finance Data Capture: DEMO C:matlab_m_scriptsdbmysqltest.m Powerpoint Templates QUANTLABS.NET Page 18