示例#1
0
文件: Equity.cs 项目: Socol111/Lean
 /// <summary>
 /// Construct the Equity Object
 /// </summary>
 public Equity(SubscriptionDataConfig config, decimal leverage, bool isDynamicallyLoadedData = false)
     : base(config, leverage, isDynamicallyLoadedData)
 {
     //Holdings for new Vehicle:
     Cache      = new EquityCache();
     Exchange   = new EquityExchange();
     DataFilter = new EquityDataFilter();
     //Set the Equity Transaction Model
     TransactionModel = new EquityTransactionModel();
     PortfolioModel   = new EquityPortfolioModel();
     MarginModel      = new EquityMarginModel(leverage);
     Holdings         = new EquityHolding(this, TransactionModel, MarginModel);
 }
示例#2
0
文件: Equity.cs 项目: nooperpudd/Lean
 /// <summary>
 /// Construct the Equity Object
 /// </summary>
 public Equity(SecurityExchangeHours exchangeHours, SubscriptionDataConfig config, decimal leverage)
     : base(exchangeHours, config, leverage)
 {
     //Holdings for new Vehicle:
     Cache = new EquityCache();
     Exchange = new EquityExchange(exchangeHours);
     DataFilter = new EquityDataFilter();
     //Set the Equity Transaction Model
     TransactionModel = new EquityTransactionModel();
     PortfolioModel = new EquityPortfolioModel();
     MarginModel = new EquityMarginModel(leverage);
     Holdings = new EquityHolding(this, TransactionModel, MarginModel);
 }
示例#3
0
文件: Equity.cs 项目: reddream/Lean
 /// <summary>
 /// Construct the Equity Object
 /// </summary>
 public Equity(SubscriptionDataConfig config, decimal leverage, bool isDynamicallyLoadedData = false)
     : base(config, leverage, isDynamicallyLoadedData)
 {
     //Holdings for new Vehicle:
     Cache = new EquityCache();
     Exchange = new EquityExchange();
     DataFilter = new EquityDataFilter();
     //Set the Equity Transaction Model
     TransactionModel = new EquityTransactionModel();
     PortfolioModel = new EquityPortfolioModel();
     MarginModel = new EquityMarginModel(leverage);
     Holdings = new EquityHolding(this, TransactionModel, MarginModel);
 }
示例#4
0
文件: Equity.cs 项目: zhangxia85/Lean
 /// <summary>
 /// Construct the Equity Object
 /// </summary>
 public Equity(SecurityExchangeHours exchangeHours, SubscriptionDataConfig config, decimal leverage)
     : base(exchangeHours, config, leverage)
 {
     //Holdings for new Vehicle:
     Cache      = new EquityCache();
     Exchange   = new EquityExchange(exchangeHours);
     DataFilter = new EquityDataFilter();
     //Set the Equity Transaction Model
     TransactionModel = new EquityTransactionModel();
     PortfolioModel   = new EquityPortfolioModel();
     MarginModel      = new EquityMarginModel(leverage);
     Holdings         = new EquityHolding(this, TransactionModel, MarginModel);
 }