public static CsvDataSource CreateFormStrings(IDictionary <string, string> csvData)
        {
            var res = new CsvDataSource();

            foreach (var kvp in csvData)
            {
                res.AddOrReplaceBars(kvp.Key, Csv2Frame.LoadBarsFromString(kvp.Value));
            }

            return(res);
        }
        public static CsvDataSource CreateFormStrings(IDictionary<string, string> csvData)
        {
            var res = new CsvDataSource();

            foreach (var kvp in csvData)
            {
                res.AddOrReplaceBars(kvp.Key, Csv2Frame.LoadBarsFromString(kvp.Value));
            }

            return res;
        }
        public static CsvDataSource CreateFromFiles(string csvDirectory, string[] symbolList)
        {
            var res = new CsvDataSource();

            foreach (var symbol in symbolList)
            {
                var csvPath = Path.Combine(csvDirectory, symbol + ".csv");
                res.AddOrReplaceBars(symbol, Csv2Frame.LoadBarsFromFile(csvPath));
            }

            return(res);
        }
        public static CsvDataSource CreateFromFiles(string csvDirectory, string[] symbolList)
        {
            var res = new CsvDataSource();

            foreach (var symbol in symbolList)
            {
                var csvPath = Path.Combine(csvDirectory, symbol + ".csv");
                res.AddOrReplaceBars(symbol, Csv2Frame.LoadBarsFromFile(csvPath));
            }

            return res;
        }