示例#1
0
 public Portfolio(Framework framework, string name = "")
 {
     this.framework            = framework;
     this.name                 = name;
     this.account              = new Account(framework);
     this.fills                = new FillSeries(name);
     this.positions            = new List <Position>();
     this.positionByInstrument = new IdArray <Position>(1000);
     this.pricer               = framework.portfolioManager.pricer;
     this.performance          = new PortfolioPerformance(this);
     this.statistics           = new PortfolioStatistics(this);
 }
示例#2
0
 public Portfolio(Framework framework, string name = "")
 {
     this.framework = framework;
     this.name = name;
     this.account = new Account(framework);
     this.fills = new FillSeries(name);
     this.positions = new List<Position>();
     this.positionByInstrument = new IdArray<Position>(1000);
     this.pricer = framework.portfolioManager.pricer;
     this.performance = new PortfolioPerformance(this);
     this.statistics = new PortfolioStatistics(this);
 }
示例#3
0
 public PortfolioManager(Framework framework)
 {
     this.framework = framework;
     this.pricer    = new Pricer(framework);
 }
示例#4
0
 public PortfolioManager(Framework framework)
 {
     this.framework = framework;
     this.pricer = new Pricer(framework);
 }