private void AddOverviewSection(string systemName, DateTime dateUnderUnderAnalysis) { var section = new KeyValueSection("Overview"); section.Entries["Trading system"] = systemName; section.Entries["Date under analysis"] = dateUnderUnderAnalysis.ToShortDateString(); Sections.Add(section); }
private AbstractSection CreateSummarySection() { var section = new KeyValueSection("Summary"); section.Entries["Signal"] = SystemResult.Signal; section.Entries["ExpectedGain"] = SystemResult.ExpectedGain; section.Entries["GainRiskRatio"] = SystemResult.GainRiskRatio; return(section); }
private AbstractSection CreateOverviewSection(TradingResult tradingResult) { var section = new KeyValueSection("Overview"); section.Entries["Stock"] = tradingResult.Stock; section.Entries["Inital cash"] = tradingResult.InitialCash; section.Entries["Portfolio value"] = tradingResult.PortfolioValue; section.Entries["Gain per anno"] = tradingResult.GainPerAnno; return(section); }
private void AddOverviewSection(Data data) { var section = new KeyValueSection("Overview"); if (data.SignalOfDayUnderAnalysis.Type == SignalType.None) { // add hint to the user that there was missing data to calc a current signal section.Entries["Current signal"] = "None (Not enough data to calculate signal)"; } else { section.Entries["Current signal"] = data.SignalOfDayUnderAnalysis; } Sections.Add(section); }