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); } }
public static void OnCandleEvent(CandleEventArgs e) { CandleEvent?.Invoke(typeof(Events), e); }