diff --git a/README.md b/README.md index bf4240a..0167605 100644 --- a/README.md +++ b/README.md @@ -129,7 +129,7 @@ Greeks { delta: 0.013645840354947947, gamma: -0.0008813766475726433, theta: 0.17 Quantrs also supports plotting option prices and strategies using the `plotters` backend. -E.g., Plot the P/L of a slightly skewed Condor spread: +E.g., Plot the P/L of a slightly skewed Condor spread using the Monte-Carlo model:
Click to see example code @@ -148,24 +148,26 @@ let options = vec![ EuropeanOption::new(instrument.clone(), 115.0, 1.0, Call), ]; -// Create a new Black-Scholes model with: +// Create a new Monte-Carlo model with: // - Risk-free interest rate (r) = 5% // - Volatility (σ) = 20% -let model = BlackScholesModel::new(0.05, 0.2); +// - Number of simulations = 10,000 +// - Number of time steps = 365 +let model = MonteCarloModel::geometric(0.05, 0.2, 10_000, 365); // Plot a breakdown of the Condor spread with a spot price range of [80,120] model.plot_strategy_breakdown( "Condor Example", model.condor(&options[0], &options[1], &options[2], &options[3]), 80.0..120.0, - "path/to/destination.png", + "examples/images/strategy.png", &options, ); ```
-![condor_strategy](./examples/images/condor.png) +![condor_strategy](./examples/images/strategy.png)