Free Sample
+ Collection

F# for Quantitative Finance

Starting
Johan Astborg

An introductory guide to utilizing F# for quantitative finance leveraging the .NET platform
$26.99
$44.99
RRP $26.99
RRP $44.99
eBook
Print + eBook

Want this title & more?

$21.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781782164623
Paperback286 pages

About This Book

  • Learn functional programming with an easy-to-follow combination of theory and tutorials
  • Build a complete automated trading system with the help of code snippets
  • Use F# Interactive to perform exploratory development
  • Leverage the .NET platform and other existing tools from Microsoft using F#

Who This Book Is For

If you are a practitioner of quantitative finance, economics, or mathematics and wish to learn F#, then this book is for you. You may have a basic conceptual understanding of financial concepts and models, but no previous knowledge is expected.

Table of Contents

Chapter 1: Introducing F# Using Visual Studio
Introduction
Getting started with Visual Studio
Understanding F# Interactive
Language overview
Explaining mutability and immutability
Primitive types
Explaining type inference
Explaining functions
Documenting your code
Your first application
The whole program
The power of prototyping
Functional languages in quantitative finance
Understanding the imperative code and interoperability
Summary
Chapter 2: Learning More About F#
Structuring your F# program
Looking deeper inside data structures
Choosing data structures
More on functional programming
Asynchronous and parallel programming
A brief look at imperative programming
Using XML documentation
Summary
Chapter 3: Financial Mathematics and Numerical Analysis
Understanding the number representation
Learning about numerical types in F#
Arithmetic operators
Learning about arithmetic comparisons
Math operators
Conversion functions
Introducing statistics
Using the Math.NET library
Learning about root-finding algorithms
Summary
Chapter 4: Getting Started with Data Visualization
Making your first GUI in F#
Composing interfaces
Displaying data
Extending the application to use Bollinger bands
Using FSharp.Charting
Creating a bar chart
Summary
Chapter 5: Learning Option Pricing
Introduction to options
Learning the Black-Scholes formula
The Monte Carlo method
Summary
Chapter 6: Exploring Volatility
Introduction to volatility
Learning about implied volatility
Solving for implied volatility
Delta hedging using Black-Scholes
Exploring the volatility smile
Summary
Chapter 7: Getting Started with Order Types and Market Data
Introducing orders
Understanding order execution
Introducing market data
Implementing simple pretrade risk analysis
Introducing FIX and QuickFIX/N
Summary
Chapter 8: Setting Up the Trading System Project
Explaining automated trading
Understanding software testing and test-driven development
Understanding NUnit and FsUnit
Connecting to Microsoft SQL Server
Introducing type providers
Writing test cases
Summary
Chapter 9: Trading Volatility for Profit
Trading the volatility
Plotting payoff diagrams with FSharpCharts
Learning directional trading strategies
Deriving the mathematics
Learning relative value trading strategies
Defining the trading strategy
Summary
Chapter 10: Putting the Pieces Together
Understanding the requirements
Revisiting the structure of the system
Understanding the Model-View-Controller pattern
Executing the trading strategy using a framework
Building the GUI
Presenting information in the GUI
Adding support for downloading the data
Looking at possible additions to the system
Summary

What You Will Learn

  • Use Visual Studio as your main tool for writing F#
  • Utilize F# to aggregate data and calculate statistics
  • Plot and visualize data in F#
  • Learn about volatility, delta hedging, and volatility arbitrage
  • Understand basic numerical analysis and algorithm implementation
  • Model orders and market data together with basic pre-trade risk
  • Structure and write object-oriented code
  • Develop larger programs using F#
  • Explore automated trading systems and quantitative trading models

In Detail

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.

Authors

Read More

Recommended for You

Windows Phone 7.5 Application Development with F#
$ 14.99
C# 2008 and 2005 Threaded Programming: Beginner's Guide
$ 23.99
JavaFX 1.2 Application Development Cookbook
$ 23.99