Barrier option (source code)

= Barrier option
{wiki}

A <barrier option> activates or expires according to whether the underlying price reaches a prescribed level during its lifetime. Its state must include whether the barrier has already been reached; the current price alone generally does not determine its remaining payoff.