Class BinomialJRDoubleBarrierEngine
- Namespace
- NanoQL.Experimental
- Assembly
- NanoQL.dll
The binomial double-barrier engine on the Jarrow-Rudd tree and Derman and Kani's discretized double-barrier option:
QuantLib-Python's BinomialJRDoubleBarrierEngine, QuantLib's BinomialDoubleBarrierEngine<JarrowRudd,
DiscretizedDermanKaniDoubleBarrierOption>, the wheel's closing.
[Experimental("NQL0001")]
public static class BinomialJRDoubleBarrierEngine
- Inheritance
-
BinomialJRDoubleBarrierEngine
- Inherited Members
Methods
Calculate(DoubleBarrierOption, EvaluationContext, GeneralizedBlackScholesProcess, int)
Prices a double barrier option on a binomial tree.
public static OneAssetOptionResults Calculate(DoubleBarrierOption option, EvaluationContext context, GeneralizedBlackScholesProcess process, int timeSteps)
Parameters
optionDoubleBarrierOptionThe option, with a striked payoff.
contextEvaluationContextThe evaluation context.
processGeneralizedBlackScholesProcessThe Black-Scholes process.
timeStepsintThe number of time steps, positive.
Returns
- OneAssetOptionResults
The value, delta, gamma and theta; the delta and the gamma null where the tree's first nodes don't separate.
Exceptions
- ArgumentNullException
An argument is null.
- ArgumentException
timeStepsisn't positive.- NanoQLException
The underlying isn't positive, the payoff isn't striked, the tree can't be built, or the asset refuses the barrier type.