public EDoorMonitorEnterController(STR_EDoor parent)
        {
            this.Parent = parent;
            this.BlockAfterCancel = true;
            this.EnterTen = true;

            // EDoorEachMonitorEnterController 생성하기
            CreateEachMonitorEnterController();
        }
示例#2
0
        public IStrategy CreateStrategy(String inputJson, String strategyName)
        {
            EDoorInput input = Util.GetJsonObject(typeof(EDoorInput), inputJson) as EDoorInput;

            Account elwAccount = StrategyManager.Ins().GetAccount(input.ElwAccountName);
            Account optionAccount = StrategyManager.Ins().GetAccount(input.OptionAccountName);

            MonitorLimit_Time_And_MarketData monitorLimit = new MonitorLimit_Time_And_MarketData(
                DateUtil.GetTodayDateTime(9 + Const.kHourAdjustment_Start, 0, 0),
                DateUtil.GetTodayDateTime(12 + 3 + Const.kHourAdjustment_End, 0, 0));

            STR_EDoor strategy = new STR_EDoor(
                input,
                strategyName,
                elwAccount,
                optionAccount,
                monitorLimit);

            return strategy;
        }
示例#3
0
 public EDoorCenterData(EDoorInput input, STR_EDoor parent)
 {
     Init(input, parent);
 }
示例#4
0
        void Init(EDoorInput input, STR_EDoor parent)
        {
            this.MaxChannelCount = input.ChannelCount;
            this.CurEnterCountType = EnterCountType.Ten;

            this.ElwAccount = parent.ElwAccount;
            this.OptionAccount = parent.OptionAccount;
        }
示例#5
0
        STR_EDoor_Accessor EDoorCreateTest()
        {
            // STR_EDoor를 생성한다. 기본값을 이용한다.
            STR_EDoor builder = new STR_EDoor();

            String input = builder.GetInputTemplate();

            STR_EDoor edoor =
                builder.CreateStrategy(input, "EDoorTest") as STR_EDoor;
            STR_EDoor_Accessor acc =
                new STR_EDoor_Accessor(new PrivateObject(edoor));

            // acc를 이용해서 내부 값이 정상적인지 확인한다.
            Assert.AreEqual(acc._strategyName, "EDoorTest");
            EDoorCenterDataTest(acc._centerData);
            EDoorMonitorEnterControllerTest(acc._monitorController);

            return acc;
        }