예제 #1
0
        public void Smma()
        {
            foreach (int qty in convergeQuantities)
            {
                IEnumerable <Quote>      h = HistoryTestData.GetLong(110 + qty);
                IEnumerable <SmmaResult> r = Indicator.GetSmma(h, 15);

                SmmaResult l = r.LastOrDefault();
                Console.WriteLine("SMMA(15) on {0:d} with {1,4} periods: {2:N8}",
                                  l.Date, h.Count(), l.Smma);
            }
        }
예제 #2
0
    public void Smma()
    {
        foreach (int qty in QuotesQuantities)
        {
            IEnumerable <Quote>      quotes = TestData.GetLongish(qty);
            IEnumerable <SmmaResult> r      = quotes.GetSmma(15);

            SmmaResult l = r.LastOrDefault();
            Console.WriteLine(
                "SMMA(15) on {0:d} with {1,4} periods: {2:N8}",
                l.Date, quotes.Count(), l.Smma);
        }
    }