Skip to content

Greek calculation with "CrankNicolson" #158

@matthewgson

Description

@matthewgson

Hi,

I'm new to this package, and I was wondering if I'm missing something to see the full estimate of greeks in AmericanOption() function.
Documentation says When “CrankNicolson” is selected, then at least delta, gamma and vega are available., but when I run the example given in the documentation, I only see value, delta and gamma.

> AmericanOption("put", strike=100, volatility=0.4, 100, 0.02, 0.03, 0.5, engine="CrankNicolson")
Concise summary of valuation for AmericanOption 
  value   delta   gamma    vega   theta     rho  divRho 
10.9168 -0.4358  0.0140      NA      NA      NA      NA 
> AmericanOption("call", strike=100, volatility=0.4, 100, 0.02, 0.03, 0.5, engine="CrankNicolson")
Concise summary of valuation for AmericanOption 
  value   delta   gamma    vega   theta     rho  divRho 
11.3597  0.5580  0.0138      NA      NA      NA      NA 

I'm wondering what causes the vega missing, and what specifications should add to see full estimates of greeks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions