예제 #1
0
        public ResultSummaryData(String key, AdjTradingResultTable resultTable)
        {
            this.Key = key;
            this._resultTable = resultTable;

            SetSummary();
        }
예제 #2
0
 public void CreateReport(AdjTradingResultTable resultTable)
 {
     foreach (ITradingReport report in _reports)
     {
         report.CreateReport(resultTable);
     }
 }
예제 #3
0
 public void CreateReport(AdjTradingResultTable resultTable)
 {
     foreach (KeyValuePair<String, ZooData> row in resultTable.EachTradingResult)
     {
         String fileName = String.Format("c:\\MalibLog\\{0}_{1}.csv", this._prefix, row.Key);
         row.Value.ToCsv(fileName);
     }
 }
예제 #4
0
        AdjTradingResultTable CreateTradingResultTable(AdjTable adjTable, AdjTradingInput input)
        {
            AdjTradingResultTable resultTable = new AdjTradingResultTable(this.From, this.Until);
            double investAmount = input.InvestAmount;

            foreach (String instKey in adjTable.Data.Keys)
            {
                ZooData zoo =
                    AdjTradingResultCalculator.Calculate(instKey, adjTable, this.From, this.Until, investAmount);

                resultTable.EachTradingResult.Add(instKey, zoo);
            }
            resultTable.CalculateTotal();

            return resultTable;
        }