예제 #1
0
파일: Equity.cs 프로젝트: im-ik/QCAlgorithm
        /******************************************************** 
        * CLASS VARIABLES
        *********************************************************/
        
        /******************************************************** 
        * CONSTRUCTOR/DELEGATE DEFINITIONS
        *********************************************************/
        /// <summary>
        /// Construct the Market Vehicle
        /// </summary>
        public Equity(string symbol, Resolution resolution, bool fillDataForward, decimal leverage, bool extendedMarketHours, bool useQuantConnectData = false) :
            base(symbol, SecurityType.Equity, resolution, fillDataForward, leverage, extendedMarketHours, useQuantConnectData) {
            //Holdings for new Vehicle:
            Cache = new EquityCache();
            Holdings = new EquityHolding(symbol, this.Model);
            Exchange = new EquityExchange();

            //Set the Transaction Model
            Model = new EquityTransactionModel();
        }
예제 #2
0
        /********************************************************
         * CLASS VARIABLES
         *********************************************************/

        /********************************************************
         * CONSTRUCTOR/DELEGATE DEFINITIONS
         *********************************************************/
        /// <summary>
        /// Construct the Market Vehicle
        /// </summary>
        public Equity(string symbol, Resolution resolution, bool fillDataForward, decimal leverage, bool extendedMarketHours, bool useQuantConnectData = false) :
            base(symbol, SecurityType.Equity, resolution, fillDataForward, leverage, extendedMarketHours, useQuantConnectData)
        {
            //Holdings for new Vehicle:
            Cache    = new EquityCache();
            Holdings = new EquityHolding(symbol, this.Model);
            Exchange = new EquityExchange();

            //Set the Transaction Model
            Model = new EquityTransactionModel();
        }