Example #1
0
        /// <summary>
        /// Initialise the data and resolution required, as well as the cash and start-end dates for your algorithm. All algorithms must initialized.
        /// </summary>
        public override void Initialize()
        {
            SetStartDate(2003, 10, 07);  //Set Start Date
            SetEndDate(2003, 10, 11);    //Set End Date
            SetCash(100000);             //Set Strategy Cash

            // Find more symbols here: http://quantconnect.com/data
            // Equities Resolutions: Tick, Second, Minute, Hour, Daily.
            AddEquity("TCS", Resolution.Tick, Market.India);

            //Set Order Prperties as per the requirements for order placement
            DefaultOrderProperties = new ZerodhaOrderProperties(exchange: "nse");

            // General Debug statement for acknowledgement
            Debug("Intialization Done");
        }
        /// <summary>
        /// Initialise the data and resolution required, as well as the cash and start-end dates for your algorithm. All algorithms must initialized.
        /// </summary>
        public override void Initialize()
        {
            SetStartDate(2003, 10, 07);  //Set Start Date
            SetEndDate(2003, 10, 11);    //Set End Date
            SetCash(100000);             //Set Strategy Cash

            // Find more symbols here: http://quantconnect.com/data
            // Equities Resolutions: Tick, Second, Minute, Hour, Daily.
            AddEquity("UNIONBANK", Resolution.Second, Market.India);

            //Set Order Prperties as per the requirements for order placement
            DefaultOrderProperties = new ZerodhaOrderProperties(exchange: Exchange.NSE);
            //override default productType value set in config.json if needed - order specific productType value
            //DefaultOrderProperties = new ZerodhaOrderProperties(exchange: "nse",ZerodhaOrderProperties.KiteProductType.CNC);

            // General Debug statement for acknowledgement
            Debug("Intialization Done");
        }