public void CalcCurrentValue_NoActivePositions__CalculatesOnlyCash()
 {
     _stockPrices.TS[0] = CurrentTS;
     _stockPrices.C[0]  = Close1;
     _testObj.CalcCurrentValue(CurrentTS, _dataLoader);
     _testObj.Equity.Count.ShouldBe(1);
     _testObj.Equity[0].Value.ShouldBe(CashValue);
     _testObj.Equity[0].TS.ShouldBe(CurrentTS);
 }
示例#2
0
 private void CalculateCurrentSystemValue(DateTime ts, SystemState systemState)
 {
     systemState.CalcCurrentValue(ts, _dataLoader);
 }