Inheritance: FastQuant.Component.ComponentStrategy
Ejemplo 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();
        }
Ejemplo 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();
        }