Beispiel #1
0
        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);
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
        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);
        }
Beispiel #4
0
        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);
        }