public TradeDetector(TradeDetectionType type) { if (type == TradeDetectionType.FIFO) { this.FillSet = new QueueFillSet(); } else { this.FillSet = new StackFillSet(); } this.trades = new List <TradeInfo>(); }
public TradeDetector(TradeDetectionType type) { if (type == TradeDetectionType.FIFO) { this.FillSet = new QueueFillSet(); } else { this.FillSet = new StackFillSet(); } this.trades = new List<TradeInfo>(); }
public TradeDetector(TradeDetectionType type, Portfolio portfolio) { this.portfolio_0 = portfolio; if (type == TradeDetectionType.FIFO) { this.interface0_0 = new QueueFillSet(); } else { this.interface0_0 = new StackFillSet(); } this.list_0 = new List<TradeInfo>(); this.timeSeries_0 = new TimeSeries(); }
public TradeDetector(TradeDetectionType type, Portfolio portfolio) { this.portfolio_0 = portfolio; if (type == TradeDetectionType.FIFO) { this.interface0_0 = new QueueFillSet(); } else { this.interface0_0 = new StackFillSet(); } this.list_0 = new List <TradeInfo>(); this.timeSeries_0 = new TimeSeries(); }