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();
}