public STR_DoorTest() { // Door 생성 테스트 STR_Door generator = new STR_Door(); STR_Door door = generator.CreateStrategy(generator.GetInputTemplate(), "SimDoorUnittest") as STR_Door; _doorAcr = new STR_Door_Accessor(new PrivateObject(door)); _monitorControllerAcr = new MonitorController_Door_Accessor(new PrivateObject(_doorAcr._monitorController)); }
public MonitorController_Door(STR_Door parent) { Parent = parent; double targetStrikeOffset = Parent.Input.DoorStrikeOffset; double moveBuffer = Parent.Input.MoveBuffer; MonitorPrice = new Monitor_UnderlyingPrice(targetStrikeOffset, moveBuffer); _monitorDoor = new Monitor_Door_Ready(this); _futureCode = KospiFutureUtil.Ins().KFI.Code; _monitorTime = DateUtil.GetTodayDateTime(12 + 2 + Const.kHourAdjustment_End, 59, 59); this.EnterAfterCancel = false; this.EnterMinCount = true; }
public IStrategy CreateStrategy(String inputJson, String strategyName) { STR_Door_Input input = Util.GetJsonObject(typeof(STR_Door_Input), inputJson) as STR_Door_Input; 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_Door strategy = new STR_Door( input, strategyName, elwAccount, optionAccount, monitorLimit); return strategy; }
public Controller_Agroor(STR_Door parent) { Parent = parent; MaxAgroorCount = 32; }
Dictionary<long, Sweeper_Door> _sweepers = new Dictionary<long, Sweeper_Door>(); // Enter 주문번호가 key #endregion Fields #region Constructors public SweeperController_Door(STR_Door parent) { Parent = parent; }