One-touch option (source code)

= One-touch option

A barrier contract paying a specified fixed amount if the underlying touches a specified barrier before expiry. Payment at touch and payment at expiry are different conventions. For payment at touch, valuation uses the <truncated discounted Brownian first passage> after converting a geometric stock barrier to a log-price level; discounting solely at expiry would price a different contract.