Modern Computational Finance
Scripting for Derivatives and xVA
Antoine Savine, Jesper Andreasen
- English
- ePUB (mobile friendly)
- Available on iOS & Android
Modern Computational Finance
Scripting for Derivatives and xVA
Antoine Savine, Jesper Andreasen
About This Book
An incisive and essentialguide to building a complete system for derivative scripting
InVolume 2 of Modern Computational Finance Scripting for Derivatives and xVA, quantitative finance expertsand practitioners Drs. Antoine Savine and Jesper Andreasen deliver an indispensable and insightfulroadmap to the interrogation, aggregation, and manipulation of cash-flows in a variety of ways. The book demonstrates how to facilitate portfolio-wide risk assessment andregulatory calculations (like xVA).
Complete with a professional scripting library written in modern C++, this stand-alone volumewalks readers through the construction of a comprehensiverisk and valuationtool.Thisessentialbook also offers:
- Effective strategies for improving scripting libraries, from basic examples—likesupport for dates and vectors—to advanced improvements, including American Monte Carlo techniques
- Exploration of the concepts of fuzzy logic and risk sensitivities, including support for smoothing and condition domains
- Discussion of the application of scripting to xVA, complete with a full treatment of branching
Perfect for quantitative analysts, risk professionals, system developers, derivatives traders, and financial analysts, Modern Computational Finance Scripting for Derivatives and xVA: Volume 2is also amust-read resourcefor students and teachers inmaster'sand PhD finance programs.
Frequently asked questions
Information
PART I
A Scripting Library in C++
Introduction
01Jun2020 | vRef=spot() vAlive=1 |
01Jun2021 | if spot() > vRef then prd=110 vAlive=0 endIf |
01Jun2022 | if spot() > vRef then if vAlive=1 then prd=120 endIf vAlive=0 endIf |
01Jun2023 | if vAlive=1 then if spot() > vRef then prd=130 else prd=50 endIf endIf |
- Today, we set the reference to the current spot level and initialize the alive status to 1.
- Year 1, we check whether the spot increased, in which case we pay redemption + 10% and die.
- Year 2, we check that the spot overall increased over two years. In this case, provided we survived year 1, we pay redemption + 20% and die.
- Year 3, provided we survived the first two, we check if the spot overall increased. In this case we pay redemption + 30%. If not, we repay 50% of the notional.