private void InitCalendars() { calWeekDate = new Utils.Calendar("WeekDate", ref txtWeekDate); calWeekDate.ImageButton(imgWeekDate); calMonthDate = new Utils.Calendar("MonthDate", ref txtMonthDate); calMonthDate.ImageButton(imgMonthDate); calBegDateRange = new Utils.Calendar("BegDateRange", ref txtBegDateRange); calBegDateRange.ImageButton(imgBegDateRange); calEndDateRange = new Utils.Calendar("EndDateRange", ref txtEndDateRange); calEndDateRange.ImageButton(imgEndDateRange); }
private void InitCalendars() { calDayDate = new Utils.Calendar("DayDate", ref txtDayDate); calDayDate.ImageButton(imgDayDate); calWeekDate = new Utils.Calendar("WeekDate", ref txtWeekDate); calWeekDate.ImageButton(imgWeekDate); calMonthDate = new Utils.Calendar("MonthDate", ref txtMonthDate); calMonthDate.ImageButton(imgMonthDate); calMonthDate.HideControlsList = "ddlCustomerDate"; calBegDateRange = new Utils.Calendar("BegDateRange", ref txtBegDateRange); calBegDateRange.ImageButton(imgBegDateRange); calBegDateRange.HideControlsList = "ddlCustomerDate, ddlCopies"; calEndDateRange = new Utils.Calendar("EndDateRange", ref txtEndDateRange); calEndDateRange.ImageButton(imgEndDateRange); calEndDateRange.HideControlsList = "ddlCustomerDate"; }
public Strategy(int strategy_id, string config, IBApi.EClientInterface socket) { _socket = socket; id = strategy_id; XmlDocument xml = new XmlDocument(); xml.LoadXml(config); XmlNode xn1 = xml.SelectSingleNode("/Config"); XmlNode common = xn1.SelectSingleNode("Common"); _time_zone = common["TimeZone"].InnerText; _zone = mapDotNetTimeZone(_time_zone); _start_time = TimeSpan.Parse(common["StartTime"].InnerText); _end_time = TimeSpan.Parse(common["EndTime"].InnerText); _calendar_name = common["Calendar"].InnerText; _calendar = mapCalendar(_calendar_name); if (common.SelectSingleNode("BarType") == null) { _bar_type = "TRADES"; } else { _bar_type = (common["BarType"].InnerText).ToUpper(); } _db = DBAccess.DBAccess.instance; _tg = TickerGenerator.instance; _tm = ThreadManager.instance; _mm = MarketDataManager.instance; _om = OrderManager.instance; _msg = Messenger.instance; _realtimeBarEvent = _tm.createEvent(); _reqContractMap = new Dictionary <int, int>(); _contractReqMap = new Dictionary <int, int>(); _contracts = new List <int>(); _contractDetailMap = new Dictionary <int, ContractDetails>(); }