Inheritance: FastQuant.Component.ComponentStrategy
コード例 #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();
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: fastquant/fastquant.dll
        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();
        }