Exemplo n.º 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);
     }
 }
Exemplo n.º 2
0
        private void onNewCandle(Candle candle) {

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