Library "ctnd"

Description:
Double precision algorithm to compute the cumulative trivariate normal distribution
found in A.Genz, Numerical computation of rectangular bivariate and trivariate normal
and t probabilities”, Statistics and Computing, 14, (3), 2004. The cumulative trivariate
normal is needed to price window barrier options, see G.F. Armstrong, Valuation formulae
or window barrier options”, Applied Mathematical Finance, 8, 2001.

References:
https://link.springer.com/article/10.1023/B%3ASTCO.0000035304.20635.31
https://www.tandfonline.com/doi/abs/10.1080/13504860210124607
https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.353.1954&rep=rep1&type=pdf
The Complete Guide to Option Pricing Formulas, 2nd ed. (Espen Gaarder Haug)

CTND(LIMIT1, LIMIT2, LIMIT3, SIGMA1, SIGMA2, SIGMA3)
  Returns the Cumulative Trivariate Normal Distribution
  Parameters:
    LIMIT1: float,
    LIMIT2: float,
    LIMIT3: float,
    SIGMA1: float,
    SIGMA2: float,
    SIGMA3: float,
  Returns: float.

Public Telegram Group, t.me/algxtrading_public

VIP Membership Info: www.patreon.com/algxtrading/membership
Biblioteca Pine

Siguiendo el verdadero espíritu de TradingView, el autor de este código de Pine lo ha publicado como biblioteca de código abierto, para que el resto de programadores de Pine de esta comunidad puedan volver a utilizarlo. ¡Un hurra por el autor! Puede utilizar esta biblioteca de forma privada o en otras publicaciones de código abierto, pero debe ceñirse a lo establecido en las Normas internas.

Exención de responsabilidad

La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.

¿Quiere utilizar esta biblioteca?

Copie la siguiente línea y péguela en su script.