Skip to content

Commit a7d5b9c

Browse files
committed
Ensure test indicator initiate correctly
1 parent b7b5276 commit a7d5b9c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Tests/Indicators/ImpliedVolatilityTests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class ImpliedVolatilityTests : CommonIndicatorTests<IBaseDataBar>
3030
protected override string TestColumnName => "ImpliedVolatility";
3131

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

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

0 commit comments

Comments
 (0)