示例#1
0
        private static void Events_CandleEvent(object sender, CandleEventArgs e)
        {
            Console.WriteLine(e.Candle.ToString());

            if (e.Candle.insert)
            {
                Candles[e.Candle.Pair].Insert(0, e.Candle);
            }
            else
            {
                Candles[e.Candle.Pair].Add(e.Candle);
            }
        }
示例#2
0
 public static void OnCandleEvent(CandleEventArgs e)
 {
     CandleEvent?.Invoke(typeof(Events), e);
 }