Options
All
  • Public
  • Public/Protected
  • All
Menu

Analytic engine for barrier option on two assets The formulas are taken from "Option pricing formulas", E.G. Haug, McGraw-Hill,

test

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

Hierarchy

  • engine
    • AnalyticTwoAssetBarrierEngine

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 _process1

Private _process2

_results

_results: Results

Private _rho

_rho: Handle<Quote>

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

A

  • Parameters

    Returns Real

B

  • Parameters

    Returns Real

M

  • Parameters

    Returns Real

barrier

  • Returns Real

calculate

  • calculate(): void

call

  • Returns Real

costOfCarry1

  • costOfCarry1(): Rate
  • Returns Rate

costOfCarry2

  • costOfCarry2(): Rate
  • Returns Rate

d1

  • Returns Real

d2

  • Returns Real

d3

  • Returns Real

d4

  • Returns Real

dividendYield1

  • dividendYield1(): Rate
  • Returns Rate

dividendYield2

  • dividendYield2(): Rate
  • Returns Rate

e1

  • Returns Real

e2

  • Returns Real

e3

  • Returns Real

e4

  • Returns Real

getArguments

  • getArguments(): Arguments

getResults

mu

  • Parameters

    Returns Real

put

  • Returns Real

reset

  • reset(): void

residualTime

  • residualTime(): Time
  • Returns Time

rho

  • Returns Real

riskFreeRate

  • riskFreeRate(): Rate
  • Returns Rate

strike

  • Returns Real

triggered

  • triggered(underlying: Real): boolean
  • Parameters

    Returns boolean

underlying1

  • underlying1(): Real
  • Returns Real

underlying2

  • underlying2(): Real
  • Returns Real

update

  • update(): void

volatility1

  • Returns Volatility

volatility2

  • Returns Volatility