Exemplo n.º 1
0
 public TradeDetector(TradeDetectionType type)
 {
     if (type == TradeDetectionType.FIFO)
     {
         this.FillSet = new QueueFillSet();
     }
     else
     {
         this.FillSet = new StackFillSet();
     }
     this.trades = new List <TradeInfo>();
 }
Exemplo n.º 2
0
 public TradeDetector(TradeDetectionType type)
 {
     if (type == TradeDetectionType.FIFO)
     {
         this.FillSet = new QueueFillSet();
     }
     else
     {
         this.FillSet = new StackFillSet();
     }
     this.trades = new List<TradeInfo>();
 }
Exemplo n.º 3
0
 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();
 }
Exemplo n.º 4
0
 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();
 }