Skip to content

Commit

Permalink
minor bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisSzeto committed Jan 18, 2024
1 parent 28cdc3a commit d42a285
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Tests/Indicators/ImpliedVolatilityTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,8 @@ public override void ComparesAgainstExternalDataAfterReset()
[TestCase(27.772, 430.0, OptionRight.Put, 180, 0.178)]
public void ComparesIVOnBSMModel(decimal price, decimal spotPrice, OptionRight right, int expiry, double refIV)
{
// Under CRR framework
var symbol = Symbol.CreateOption("SPY", Market.USA, OptionStyle.American, right, 450m, _reference.AddDays(expiry));
var indicator = new ImpliedVolatility(symbol, 0.04m, optionModel: OptionPricingModelType.BinomialCoxRossRubinstein);
var indicator = new ImpliedVolatility(symbol, 0.04m);

var optionDataPoint = new IndicatorDataPoint(symbol, _reference, price);
var spotDataPoint = new IndicatorDataPoint(symbol.Underlying, _reference, spotPrice);
Expand Down

0 comments on commit d42a285

Please sign in to comment.