Example #1
0
 public TradeDetector(TradeDetectionType type)
 {
     if (type == TradeDetectionType.FIFO)
     {
         this.FillSet = new QueueFillSet();
     }
     else
     {
         this.FillSet = new StackFillSet();
     }
     this.trades = new List <TradeInfo>();
 }
Example #2
0
 public TradeDetector(TradeDetectionType type)
 {
     if (type == TradeDetectionType.FIFO)
     {
         this.FillSet = new QueueFillSet();
     }
     else
     {
         this.FillSet = new StackFillSet();
     }
     this.trades = new List<TradeInfo>();
 }