Options
All
  • Public
  • Public/Protected
  • All
Menu

Analytic pricing engine for double barrier binary options

This engine implements C.H.Hui series ("One-Touch Double Barrier Binary Option Values", Applied Financial Economics 6/1996), as described in "The complete guide to option pricing formulas 2nd Ed", E.G. Haug, McGraw-Hill, p.180

The Knock In part of KI+KO and KO+KI options pays at hit, while the Double Knock In pays at end. This engine thus requires European esercise for Double Knock options, and American exercise for KIKO/KOKI.

greeks are calculated by simple numeric derivation

test
  • the correctness of the returned value is tested by reproducing results available in literature.

Hierarchy

  • engine
    • AnalyticDoubleBarrierBinaryEngine

Implements

Index

Constructors

constructor

Properties

_arguments

_arguments: Arguments

_isDisposed

_isDisposed: boolean = false

_observables

_observables: Set<Observable> = new Set()

_observers

_observers: Set<Observer> = new Set()

Private _process

_results

_results: Results

deepUpdate

deepUpdate: () => void

Type declaration

    • (): void
    • Returns void

dispose

dispose: () => void

Type declaration

    • (): void
    • Returns void

isDisposed

isDisposed: boolean

notifyObservers

notifyObservers: () => void

Type declaration

    • (): void
    • Returns void

registerObserver

registerObserver: (o: Observer) => void

Type declaration

registerWith

registerWith: (h: Observable) => void

Type declaration

registerWithObservables

registerWithObservables: (o: Observer) => void

Type declaration

unregisterObserver

unregisterObserver: (o: Observer) => void

Type declaration

unregisterWith

unregisterWith: (h: Observable) => Size

Type declaration

unregisterWithAll

unregisterWithAll: () => void

Type declaration

    • (): void
    • Returns void

Methods

calculate

  • calculate(): void

getArguments

getResults

init1

reset

  • reset(): void

Protected triggered

  • triggered(underlying: Real): boolean
  • Parameters

    Returns boolean

update

  • update(): void