public ResultSummaryData(String key, AdjTradingResultTable resultTable) { this.Key = key; this._resultTable = resultTable; SetSummary(); }
public void CreateReport(AdjTradingResultTable resultTable) { foreach (ITradingReport report in _reports) { report.CreateReport(resultTable); } }
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); } }
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; }