Book Image

F# for Quantitative Finance

By : Johan Astborg
Book Image

F# for Quantitative Finance

By: Johan Astborg

Overview of this book

F# is a functional programming language that allows you to write simple code for complex problems. Currently, it is most commonly used in the financial sector. Quantitative finance makes heavy use of mathematics to model various parts of finance in the real world. If you are interested in using F# for your day-to-day work or research in quantitative finance, this book is a must-have.This book will cover everything you need to know about using functional programming for quantitative finance. Using a functional programming language will enable you to concentrate more on the problem itself rather than implementation details. Tutorials and snippets are summarized into an automated trading system throughout the book.This book will introduce you to F#, using Visual Studio, and provide examples with functional programming and finance combined. The book also covers topics such as downloading, visualizing and calculating statistics from data. F# is a first class programming language for the financial domain.
Table of Contents (17 chapters)
F# for Quantitative Finance
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Revisiting the structure of the system


We'll revisit the project structure and make sure all the dependencies are added. The following are the parts of an automated trading system:

  • Feed handlers and market data adapters

  • Trading strategies

  • Order execution and order management

  • Persistence layer (DBs)

  • GUI for monitoring the system

We need two new dependencies. They are as follows:

  • System.Windows.Forms

  • System.Drawing

We need the System.Windows.Forms dependency to create our GUI. It provides support for Windows itself and the controls that are used. The System.Drawing dependency is also needed to provide the basic graphics functionality. The following is a list of the references needed in the project. You can verify your own project against the list to make sure you have all the dependencies needed.

The trading system is split into two projects: TradingSystem and TradingSystem.Tests.

The following is the list of dependencies required for TradingSystem:

  • FSharp.Core

  • FSharp.Data.TypeProviders

  • mscorlib...