Inheritance: FastQuant.Component.ComponentStrategy
Esempio n. 1
0
        public override void Run()
        {
            strategy = new MyStrategy(framework, "ComponentStrategy");

            Instrument instrument = InstrumentManager.Instruments["AAPL"];

            strategy.AddInstrument(instrument);

            //DataSimulator.DateTime1 = new DateTime(2012, 12, 03);
            //DataSimulator.DateTime2 = new DateTime(2013, 12, 04);

            BarFactory.Add(instrument, BarType.Time, 60);

            StartStrategy();
        }
Esempio n. 2
0
        public override void Run()
        {
            strategy = new MyStrategy(framework, "ComponentStrategy");

            Instrument instrument = InstrumentManager.Instruments["AAPL"];

            strategy.AddInstrument(instrument);

            //DataSimulator.DateTime1 = new DateTime(2012, 12, 03);
            //DataSimulator.DateTime2 = new DateTime(2013, 12, 04);  

            BarFactory.Add(instrument, BarType.Time, 60);

            StartStrategy();
        }