/// <summary> /// To call the event <see cref="NewStopOrders"/>. /// </summary> /// <param name="stopOrders">Stop orders that should be passed to the event.</param> private void RaiseNewStopOrders(IEnumerable <Order> stopOrders) { NewStopOrders?.Invoke(stopOrders); }
/// <summary> /// To call the event <see cref="NewStopOrders"/>. /// </summary> /// <param name="stopOrder">Stop order that should be passed to the event.</param> private void RaiseNewStopOrder(Order stopOrder) { NewStopOrder?.Invoke(stopOrder); NewStopOrders?.Invoke(new[] { stopOrder }); }
private void RealTraderOnNewStopOrders(IEnumerable <Order> orders) { NewStopOrders?.Invoke(this, new OrdersEventArgs(orders)); }