A barrier that is monitored only on part of the option's life. This file covers the start window, call side (QuantLib's PartialBarrier::Start, Option::Call): the barrier is live on [0, t₁] and switched off for the remainder (t₁, T] of the option's life (Haug's "Partial-Time Single-Asset Barrier Options", full citation below). Unlike the binary barrier transcribed alongside this file, this genuinely needs the bivariate normal CDF — the barrier-monitoring window [0, t₁] and the full life [0, T] are correlated (correlation ρ = √(t₁/T), the two Brownian increments share the [0, t₁] leg) — which is why this file builds on the same BivariateNormalCDF.lean substrate (bivariateNormalCDF, bivariateNormalCDF_flip_snd) as HeynenKatTwoAssetBarrier.lean. Sources for the closed form: Heynen & Kat, "Partial barrier options", Journal of Financial Engineering 3 (1994); Haug, The Complete Guide to Option Pricing Formulas, 2nd ed. (2007), ch. 4, "Partial-Time Single-Asset Barrier Options" (the A-value table the engine's CA transcribes).
Scope, disclosed honestly: QuantLib's AnalyticPartialTimeBarrierOptionEngine also prices the end-window case (PartialBarrier::EndB1/EndB2, barrier live only on (t₁, T]) via CoB1/CoB2, which are substantially more involved (each has its own strike-vs-barrier case split with extra vanilla-minus-partial decompositions) and genuinely harder; this file formalizes the start-window case (CA, QuantLib's simplest of the three) and leaves EndB1/EndB2 out of scope. CA is also call-only: QuantLib's CA is commented //Partial-Time-Start- OUT Call Option calculation, and the engine prices a put in calculate() via the put–call spot-reflection symmetry (strike X ↦ S²/X, barrier H ↦ S²/H, barrier direction mirrored, the CA-call result on the transformed inputs scaled by X/S) rather than a second closed form — that symmetry transform is not formalized here either. The knock-in case (CIA = vanilla − CA) is in–out parity — the closed-form counterpart of BarrierParity.lean's knockIn_add_knockOut_eq_vanilla (the barrier-hit event and its complement partition the payoff) — rather than an independent closed form, so it is not separately formalized.
Transcribed from QuantLib's ql/pricingengines/barrier/analyticpartialtimebarrieroptionengine.cpp (CA, upstream commit 5f4811e, 2026-10-16; contributed 2014 by Polytech'Nice Sophia Antipolis). We adopt a single constant volatility σ (QuantLib's engine reads a possibly term-structured Black vol evaluated at t₁ for μ and the e-terms and at T for the d/f-terms; Haug's original textbook closed form, which this transcribes, uses one constant σ throughout — the flat-vol case QuantLib's more general engine specializes to).
With cost-of-carry b = r − q, ρ = √(t₁/T), μ = (b − σ²/2)/σ², and
d₁ = (log(S/X) + (b+σ²/2)T)/(σ√T), d₂ = d₁ − σ√T, e₁ = (log(S/H) + (b+σ²/2)t₁)/(σ√t₁), e₂ = e₁ − σ√t₁, e₃ = e₁ + 2log(H/S)/(σ√t₁), e₄ = e₃ − σ√t₁, f₁ = (log(S/X) + 2log(H/S) + (b+σ²/2)T)/(σ√T), f₂ = f₁ − σ√T,
and (H/S)^{2μ}, (H/S)^{2(μ+1)} as exp(·log·) (as in BinaryBarrierOption.lean and HeynenKatTwoAssetBarrier.lean), the start-window out-barrier call value (η = 1 down, η = −1 up) is
CA(η) = S·e^{(b−r)T}·(N₂(d₁, ηe₁; ηρ) − (H/S)^{2(μ+1)}·N₂(f₁, ηe₃; ηρ)) − X·e^{−rT}·(N₂(d₂, ηe₂; ηρ) − (H/S)^{2μ}·N₂(f₂, ηe₄; ηρ)).
Main definitions
ptRho: ρ = √(t₁/T), the correlation between the barrier-window and full-life log-returns.ptMu: μ = (b − σ²/2)/σ², the drift parameter of the barrier formulas.ptD1, ptD2: the Black–Scholes d₁, d₂ with cost of carry b against the strike X over the full life T.ptE1, ptE2, ptE3, ptE4: the corresponding quantities against the barrier H over the monitoring window t₁, with ptE3, ptE4 carrying the barrier reflection term.ptF1, ptF2: d₁ and d₂ shifted by the barrier reflection term over the full life T.ptCA: the partial-time-start barrier call closed form CA(η) (η = 1 down, η = −1 up), Haug's expression with the barrier live on [0, t₁]; not proved to be a discounted expected payoff.ptDownOutCall: the full-life down-and-out call closed form (Rubinstein–Reiner), as transcribed in this file.
Main results
ptCA_down_add_up: CA(1) + CA(−1) collapses to a closed form with no bivariate CDF left — every N₂(a, ηb; ηρ) pair (η = ±1) telescopes via bivariateNormalCDF_flip_snd to a single Φ(a), exactly the mechanism behind HeynenKatTwoAssetBarrier.lean's heynenKat_downOut_add_upOut. As there, the down/up window-start prices are mutually exclusive regimes (down-monitored vs. up-monitored), so the sum itself is not a payoff decomposition; what the identity shows is that the sum is t₁-free — it equals ptDownOutCall, the transcribed full-life down-and-out call closed form (the X ≥ H branch), for every 0 ≤ t₁ ≤ T, not only in some limit. It verifies the (ηe_i, ηρ) sign pattern is self-consistent across η = ±1, the same scope the Heynen–Kat file disclosed for its own analogous check.
ptCA_down_monitored_full_life: monitoring over the whole life gives the full-life closed form — at t₁ = T (with X ≥ H), the correlation ρ = 1 degenerates each N₂(a, ηb; ηρ) to Φ(min(a, ηb)) via bivariateNormalCDF_one, and X ≥ H orders every such pair so the d/f term is the minimum, reducing CA(1) directly to ptDownOutCall, the closed form ptCA_down_add_up reaches. Both are identities between transcribed closed forms; neither is proved to be a price.
References
Tags
partial barrier option, Heynen–Kat, Haug closed form, barrier monitoring window, bivariate normal, knock-out call, MSC 91G20, JEL G13