Skip to content

Commit

Permalink
Ensure test indicator initiate correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisSzeto committed Jan 11, 2024
1 parent b7b5276 commit a7d5b9c
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 @@ -30,7 +30,7 @@ public class ImpliedVolatilityTests : CommonIndicatorTests<IBaseDataBar>
protected override string TestColumnName => "ImpliedVolatility";

private DateTime _reference = new DateTime(2022, 9, 1, 10, 0, 0);
private Symbol _symbol;
private Symbol _symbol = Symbol.CreateOption("SPY", Market.USA, OptionStyle.American, OptionRight.Call, 450m, new DateTime(2023, 9, 1));
private Symbol _underlying;

protected override IndicatorBase<IBaseDataBar> CreateIndicator()
Expand All @@ -42,7 +42,6 @@ protected override IndicatorBase<IBaseDataBar> CreateIndicator()
[SetUp]
public void SetUp()
{
_symbol = Symbol.CreateOption("SPY", Market.USA, OptionStyle.American, OptionRight.Call, 450m, new DateTime(2023, 9, 1));
_underlying = _symbol.Underlying;
}

Expand Down

0 comments on commit a7d5b9c

Please sign in to comment.