void GetOHLC(int barIntervalMinutes, bool displayIndicator, int limit) { //var ohlc = kraken.GetOHLC(pair, 1); // OHLC 1-MINUTE BARS //var ohlc = kraken.GetOHLC(pair, 60); // OHLC 60-MINUTE BARS var barList = m_exch.GetOHLC(m_pair, GetBinanceInterval(barIntervalMinutes), limit); if (barList == null) { return; // if an exception occurs, skip this iteration } //long last = ohlcList; //ohlc.WriteToFile(Folders.crypto_path(string.Format("Kraken.{0}.DF.csv", pair))); //var barList = ohlc; // .Pairs.Values.First(); /*foreach (var bar in barList) * { * cout("{0} {1} {2} {3} {4} {5} {6}", bar.time.ToDateTimeString(), bar.OpenTime, bar.CloseTime, bar.Open, bar.High, bar.Low, bar.Close); * } * return;*/ foreach (var bar in barList) { ProcessBar(bar, displayIndicator); // check this bar vs the bars we have already processed to see if we need to update Indicator } }