public void getValue() { ThreeBlackCrowsIndicator tbc = new ThreeBlackCrowsIndicator(series, 3, 0.1M); Assert.IsFalse(tbc.GetValue(0)); Assert.IsFalse(tbc.GetValue(1)); Assert.IsFalse(tbc.GetValue(2)); Assert.IsFalse(tbc.GetValue(3)); Assert.IsFalse(tbc.GetValue(4)); Assert.IsTrue(tbc.GetValue(5)); Assert.IsFalse(tbc.GetValue(6)); Assert.IsFalse(tbc.GetValue(7)); }
public void GetValue() { var tbc = new ThreeBlackCrowsIndicator(_series, 3, Decimal.ValueOf("0.1")); Assert.IsFalse(tbc.GetValue(0)); Assert.IsFalse(tbc.GetValue(1)); Assert.IsFalse(tbc.GetValue(2)); Assert.IsFalse(tbc.GetValue(3)); Assert.IsFalse(tbc.GetValue(4)); Assert.IsTrue(tbc.GetValue(5)); Assert.IsFalse(tbc.GetValue(6)); Assert.IsFalse(tbc.GetValue(7)); }