internal void OnFill(OnFill fill) { if (this.strategy != null && this.strategy.status == StrategyStatus.Running) { this.strategy.OnFill_(fill); } }
internal virtual void OnFill_(OnFill fill) { if (this.raiseEvents && fill.portfolio == this.portfolio) { this.OnFill(fill.fill); } for (LinkedListNode <Strategy> linkedListNode = this.strategies.First; linkedListNode != null; linkedListNode = linkedListNode.Next) { linkedListNode.Data.OnFill_(fill); } }
internal override void OnFill_(OnFill fill) { this.strategyById[fill.fill.order.strategyId].OnFill_(fill); base.OnFill_(fill); }
internal virtual void OnFill_(OnFill fill) { if (this.raiseEvents && fill.portfolio == this.portfolio) { this.OnFill(fill.fill); } for (LinkedListNode<Strategy> linkedListNode = this.strategies.First; linkedListNode != null; linkedListNode = linkedListNode.Next) { linkedListNode.Data.OnFill_(fill); } }