private void OneStockBackTest(string stockName)
        {
            for (int i = 0; i < _tradeManager.GetTradeList.Count; i++)
            {
                if (_tradeManager.GetTradeList[i].Finished)
                {
                    _backtest.ChangePortFolValue(_tradeManager, i);
                    _backtest.MaxDrawDown(i);
                }
            }

            if (_tradeManager.GetTradeList.Count > 0)
            {
                _backTestList.Add(_backtest.GetOneStockBacktest(_tradeManager, _dataList, _algoName, stockName, _backtestPeriodPicker.GetStartDate(), _backtestPeriodPicker.GetEndDate()));
            }
        }
Ejemplo n.º 2
0
 private void AddEquityCurveValue(int index)
 {
     _chartEquityCurve.Add(new DateModel());
     _chartEquityCurve[_chartEquityCurve.Count - 1].DateTime = _tradeManager.GetTradeList[index].SellDate;
     _chartEquityCurve[_chartEquityCurve.Count - 1].Value    = _backtest.ChangePortFolValue(_tradeManager, index);
 }