Beispiel #1
0
 private void OnNewCandleReceived(object source, NewCandleArgs e)
 {
     try {
         Logging.log("New Candle received: " + Lib.Converter.toString(e.Candle.dt) + "; Data=" + e.Candle.value.ToString(), LogPrior.Info);
         if (tr != null) tr.Update();
     } catch (Exception ex) {
         Logging.logException("Failed to updateEvent Trader: ", ex);
     }
 }
Beispiel #2
0
        private void onNewCandle(Candle candle) {

            if (candle == null) return;
            NewCandleArgs args = new NewCandleArgs(candle);
            onNewCandleHandler(this, args);
        }