Пример #1
0
 public ContractAll_Imme(PositionTakerController controller)
 {
     _controller = controller;
 }
Пример #2
0
 public ContractAll_Complex(PositionTakerController controller)
 {
     _controller = controller;
 }
        // run module
        public void Run()
        {
            LongShortCount lsc = GetNewReqLongShortCount();
            if (lsc.Count > 0)
            {
                String code = this.TargetPosition.FutureCode;
                double price = this.TargetPosition.FutureAvgPrice;
                PositionTakerController ptc =
                    new PositionTakerController(code, lsc.LongShort, Convert.ToInt64(lsc.Count), price, _futureAccount);
                this.FuturePositionTakers.Add(ptc);
            }

            // 실행시킨다.
            foreach (PositionTakerController ptc in this.FuturePositionTakers)
            {
                ptc.Run();
            }
        }