Options
All
  • Public
  • Public/Protected
  • All
Menu

Pricing engine for barrier options using analytical formulae

The formulas are taken from "Option pricing formulas", E.G. Haug, McGraw-Hill, p.69 and following.

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

Hierarchy

  • engine
    • AnalyticBarrierEngine

Implements

Index

Constructors

constructor

Properties

_arguments

_arguments: Arguments

Private _f

_f: CumulativeNormalDistribution = new CumulativeNormalDistribution()

_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

Private A

  • Parameters

    Returns Rate

Private B

  • Parameters

    Returns Rate

Private C

  • Parameters

    Returns Rate

Private D

  • Parameters

    Returns Rate

Private E

  • Parameters

    Returns Rate

Private F

  • Parameters

    Returns Rate

Private barrier

  • Returns Real

calculate

  • calculate(): void

Private dividendDiscount

  • Returns DiscountFactor

Private dividendYield

  • dividendYield(): Rate
  • Returns Rate

getArguments

getResults

init1

Private mu

  • Returns Rate

Private muSigma

  • Returns Rate

Private rebate

  • Returns Real

reset

  • reset(): void

Private residualTime

  • residualTime(): Time
  • Returns Time

Private riskFreeDiscount

  • Returns DiscountFactor

Private riskFreeRate

  • riskFreeRate(): Rate
  • Returns Rate

Private stdDeviation

  • stdDeviation(): Real
  • Returns Real

Private strike

  • Returns Real

triggered

  • triggered(underlying: Real): boolean
  • Parameters

    Returns boolean

Private underlying

  • underlying(): Real
  • Returns Real

update

  • update(): void

Private volatility

  • Returns Volatility