Exemplo n.º 1
0
        static void Main(string[] args)
        {
            HistoricalPriceReader hpr = new HistoricalPriceReader();
            var historicalData        = hpr.GetHistoricalQuotes("MSFT");

            var data = Rsi.CalculateRsi(historicalData, 14, CancellationToken.None);

            Debug.WriteLine($"Number of RSI Values: {data.Count()}");
        }
        public static void CalculateRsiFixed()
        {
            var dataFromFixed = Rsi.CalculateRsiFixed(HistoricalData, 14, CancellationToken.None);

            Debug.WriteLine(dataFromFixed.ToList().Count);
        }
        public static void CalculateRsiOriginal()
        {
            var data = Rsi.CalculateRsi(HistoricalData, 14, CancellationToken.None);

            Debug.WriteLine(data.ToList().Count);
        }