Exemplo n.º 1
0
        private void Notify(NotificationLevel notificationLevel, int notificationEvent, Strategy strategy, string message = "")
        {
            var strategyNotification = strategy.GetNotification(notificationLevel, notificationEvent, message);

            strategyNotificationPublisher.AddNotification(strategyNotification);
            strategyLogger.AddNotification(strategyNotification);
        }
Exemplo n.º 2
0
 private void StrategyCustomNotificationEvent(object sender, StrategyNotificationEventArgs e)
 {
     strategyCustomNotificationPublisher.AddNotification(e.StrategyNotification);
 }
Exemplo n.º 3
0
 private void StrategyCandlesticksEvent(object sender, StrategyNotificationEventArgs e)
 {
     strategyCandlesticksPublisher.AddNotification(e.StrategyNotification);
 }
Exemplo n.º 4
0
 private void StrategyOrderBookEvent(object sender, StrategyNotificationEventArgs e)
 {
     strategyOrderBookPublisher.AddNotification(e.StrategyNotification);
 }
Exemplo n.º 5
0
 private void StrategyAccountInfoEvent(object sender, StrategyNotificationEventArgs e)
 {
     strategyAccountInfoPublisher.AddNotification(e.StrategyNotification);
 }
Exemplo n.º 6
0
 private void StrategyParameterUpdateEvent(object sender, StrategyNotificationEventArgs e)
 {
     strategyParameterUpdatePublisher.AddNotification(e.StrategyNotification);
 }