---
name: "DiscreteHedging"
section: "1"
platform: "linux"
package: "quantlib-examples"
version: "1.38-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/DiscreteHedging"
---

# DiscreteHedging(1)

Example of using QuantLib

## NAME

DiscreteHedging - Example of using QuantLib

## SYNOPSIS

**DiscreteHedging**

## DESCRIPTION

**DiscreteHedging** is an example of using the *QuantLib* Monte Carlo simulation framework.

By simulation, **DiscreteHedging** computes profit and loss of a discrete interval hedging strategy and compares with the outcome with the results of Derman and Kamal's Goldman Sachs Equity Derivatives Research Note "When You Cannot Hedge Continuously: The Corrections to Black-Scholes".

## SEE ALSO

The source code *DiscreteHedging.cpp*, [**BermudanSwaption**(1)](/BermudanSwaption/1.md), [**Bonds**(1)](/Bonds/1.md), [**CallableBonds**(1)](/CallableBonds/1.md), [**CDS**(1)](/CDS/1.md), [**ConvertibleBonds**(1)](/ConvertibleBonds/1.md), [**EquityOption**(1)](/EquityOption/1.md), [**FittedBondCurve**(1)](/FittedBondCurve/1.md), [**FRA**(1)](/FRA/1.md), [**MarketModels**(1)](/MarketModels/1.md), [**MulticurveBootstrapping**(1)](/MulticurveBootstrapping/1.md), [**Replication**(1)](/Replication/1.md), [**Repo**(1)](/Repo/1.md), the QuantLib documentation and website at *https://www.quantlib.org*, *http://www.gs.com/qs/doc/when\_you\_cannot\_hedge.pdf*

## AUTHORS

The QuantLib Group (see *Contributors.txt*).

This manual page was added by Dirk Eddelbuettel \<edd@debian.org\>, the Debian GNU/Linux maintainer for **QuantLib**.
