/// <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(2014, 10, 07);
            SetEndDate(2014, 10, 11);

            UniverseSettings.Resolution = Resolution.Daily;

            var customUniverseSymbol = new Symbol(SecurityIdentifier.GenerateConstituentIdentifier(
                                                      "constituents-universe-qctest",
                                                      SecurityType.Equity,
                                                      Market.USA),
                                                  "constituents-universe-qctest");

            // we use test ConstituentsUniverse
            AddUniverse(new ConstituentsUniverse(customUniverseSymbol, UniverseSettings), FineSelectionFunction);
        }
        /// <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(2013, 10, 07);  //Set Start Date
            SetEndDate(2013, 10, 11);    //Set End Date
            SetCash(100000);             //Set Strategy Cash

            UniverseSettings.Resolution = Resolution.Daily;

            var customUniverseSymbol = new Symbol(SecurityIdentifier.GenerateConstituentIdentifier(
                                                      "constituents-universe-qctest",
                                                      SecurityType.Equity,
                                                      Market.USA),
                                                  "constituents-universe-qctest");

            AddUniverse(new ConstituentsUniverse(customUniverseSymbol, UniverseSettings));
        }
예제 #3
0
 /// <summary>
 /// Universe which selects companies that have dividend yields at least twice the average for large-cap stocks.
 /// They tend to be mature, slow-growing companies.
 /// </summary>
 public Universe HighYield(UniverseSettings universeSettings = null)
 {
     return(new ConstituentsUniverse(
                new Symbol(SecurityIdentifier.GenerateConstituentIdentifier("constituents-universe-HighYield", SecurityType.Equity, Market.USA), "constituents-universe-HighYield"),
                universeSettings ?? _algorithm.UniverseSettings));
 }
예제 #4
0
 /// <summary>
 /// Morningstar IndustrialProducts industry group <see cref="MorningstarIndustryGroupCode"/>
 /// </summary>
 public Universe IndustrialProducts(UniverseSettings universeSettings = null)
 {
     return(new ConstituentsUniverse(
                new Symbol(SecurityIdentifier.GenerateConstituentIdentifier("constituents-universe-IndustrialProducts", SecurityType.Equity, Market.USA), "constituents-universe-IndustrialProducts"),
                universeSettings ?? _algorithm.UniverseSettings));
 }
예제 #5
0
 /// <summary>
 /// Morningstar FarmAndHeavyConstructionMachinery industry group <see cref="MorningstarIndustryGroupCode"/>
 /// </summary>
 public Universe FarmAndHeavyConstructionMachinery(UniverseSettings universeSettings = null)
 {
     return(new ConstituentsUniverse(
                new Symbol(SecurityIdentifier.GenerateConstituentIdentifier("constituents-universe-FarmAndHeavyConstructionMachinery", SecurityType.Equity, Market.USA), "constituents-universe-FarmAndHeavyConstructionMachinery"),
                universeSettings ?? _algorithm.UniverseSettings));
 }
예제 #6
0
 /// <summary>
 /// Morningstar BusinessServices industry group <see cref="MorningstarIndustryGroupCode"/>
 /// </summary>
 public Universe BusinessServices(UniverseSettings universeSettings = null)
 {
     return(new ConstituentsUniverse(
                new Symbol(SecurityIdentifier.GenerateConstituentIdentifier("constituents-universe-BusinessServices", SecurityType.Equity, Market.USA), "constituents-universe-BusinessServices"),
                universeSettings ?? _algorithm.UniverseSettings));
 }
예제 #7
0
 /// <summary>
 /// Morningstar AerospaceAndDefense industry group <see cref="MorningstarIndustryGroupCode"/>
 /// </summary>
 public Universe AerospaceAndDefense(UniverseSettings universeSettings = null)
 {
     return(new ConstituentsUniverse(
                new Symbol(SecurityIdentifier.GenerateConstituentIdentifier("constituents-universe-AerospaceAndDefense", SecurityType.Equity, Market.USA), "constituents-universe-AerospaceAndDefense"),
                universeSettings ?? _algorithm.UniverseSettings));
 }
예제 #8
0
 /// <summary>
 /// Morningstar UtilitiesIndependentPowerProducers industry group <see cref="MorningstarIndustryGroupCode"/>
 /// </summary>
 public Universe UtilitiesIndependentPowerProducers(UniverseSettings universeSettings = null)
 {
     return(new ConstituentsUniverse(
                new Symbol(SecurityIdentifier.GenerateConstituentIdentifier("constituents-universe-UtilitiesIndependentPowerProducers", SecurityType.Equity, Market.USA), "constituents-universe-UtilitiesIndependentPowerProducers"),
                universeSettings ?? _algorithm.UniverseSettings));
 }
예제 #9
0
 /// <summary>
 /// Morningstar MedicalDistribution industry group <see cref="MorningstarIndustryGroupCode"/>
 /// </summary>
 public Universe MedicalDistribution(UniverseSettings universeSettings = null)
 {
     return(new ConstituentsUniverse(
                new Symbol(SecurityIdentifier.GenerateConstituentIdentifier("constituents-universe-MedicalDistribution", SecurityType.Equity, Market.USA), "constituents-universe-MedicalDistribution"),
                universeSettings ?? _algorithm.UniverseSettings));
 }
예제 #10
0
 /// <summary>
 /// Morningstar DrugManufacturers industry group <see cref="MorningstarIndustryGroupCode"/>
 /// </summary>
 public Universe DrugManufacturers(UniverseSettings universeSettings = null)
 {
     return(new ConstituentsUniverse(
                new Symbol(SecurityIdentifier.GenerateConstituentIdentifier("constituents-universe-DrugManufacturers", SecurityType.Equity, Market.USA), "constituents-universe-DrugManufacturers"),
                universeSettings ?? _algorithm.UniverseSettings));
 }
예제 #11
0
 /// <summary>
 /// Morningstar ConsumerPackagedGoods industry group <see cref="MorningstarIndustryGroupCode"/>
 /// </summary>
 public Universe ConsumerPackagedGoods(UniverseSettings universeSettings = null)
 {
     return(new ConstituentsUniverse(
                new Symbol(SecurityIdentifier.GenerateConstituentIdentifier("constituents-universe-ConsumerPackagedGoods", SecurityType.Equity, Market.USA), "constituents-universe-ConsumerPackagedGoods"),
                universeSettings ?? _algorithm.UniverseSettings));
 }
예제 #12
0
 /// <summary>
 /// Morningstar BeveragesNonAlcoholic industry group <see cref="MorningstarIndustryGroupCode"/>
 /// </summary>
 public Universe BeveragesNonAlcoholic(UniverseSettings universeSettings = null)
 {
     return(new ConstituentsUniverse(
                new Symbol(SecurityIdentifier.GenerateConstituentIdentifier("constituents-universe-BeveragesNonAlcoholic", SecurityType.Equity, Market.USA), "constituents-universe-BeveragesNonAlcoholic"),
                universeSettings ?? _algorithm.UniverseSettings));
 }
예제 #13
0
 /// <summary>
 /// Morningstar TravelAndLeisure industry group <see cref="MorningstarIndustryGroupCode"/>
 /// </summary>
 public Universe TravelAndLeisure(UniverseSettings universeSettings = null)
 {
     return(new ConstituentsUniverse(
                new Symbol(SecurityIdentifier.GenerateConstituentIdentifier("constituents-universe-TravelAndLeisure", SecurityType.Equity, Market.USA), "constituents-universe-TravelAndLeisure"),
                universeSettings ?? _algorithm.UniverseSettings));
 }
예제 #14
0
 /// <summary>
 /// Universe which selects companies whose revenues and earnings have both been growing significantly faster than
 /// the general economy.
 /// </summary>
 public Universe AggressiveGrowth(UniverseSettings universeSettings = null)
 {
     return(new ConstituentsUniverse(
                new Symbol(SecurityIdentifier.GenerateConstituentIdentifier("constituents-universe-AggressiveGrowth", SecurityType.Equity, Market.USA), "constituents-universe-AggressiveGrowth"),
                universeSettings ?? _algorithm.UniverseSettings));
 }
예제 #15
0
 /// <summary>
 /// Morningstar HomebuildingAndConstruction industry group <see cref="MorningstarIndustryGroupCode"/>
 /// </summary>
 public Universe HomebuildingAndConstruction(UniverseSettings universeSettings = null)
 {
     return(new ConstituentsUniverse(
                new Symbol(SecurityIdentifier.GenerateConstituentIdentifier("constituents-universe-HomebuildingAndConstruction", SecurityType.Equity, Market.USA), "constituents-universe-HomebuildingAndConstruction"),
                universeSettings ?? _algorithm.UniverseSettings));
 }