예제 #1
0
        public CGUICandleBox(CGUIBox GUIBox)
        {
            m_GUIBox          = GUIBox;
            m_plaza2Connector = (IClientGUICandleBox)m_GUIBox.Plaza2Connector;

            LastDataAccepted = new Dictionary <string, Dictionary <string, bool> >();;

            CreateDataStruct();
        }
        public CGUICandleCollection(/*CPlaza2Connector*/ IClientGUICandleBox plaza2Connector, string isin)
        {
            m_GUIBox          = plaza2Connector.GUIBox;
            m_plaza2Connector = plaza2Connector;
            Isin = isin;

            m_loggerTMP = new CLogger("Condlecollect_" + isin);


            /*  Add(new GUICandleObject { Date = new DateTime(2008, 8, 4), Open = 25, High = 26, Low = 24, Close = 25, Volume = 3002342 });
             * Add(new GUICandleObject { Date = new DateTime(2008, 8, 5), Open = 30, High = 31, Low = 28, Close = 29, Volume = 2000342 });
             *
             *
             * Add(new GUICandleObject { Date = new DateTime(2008, 8, 6), Open = 26, High = 28, Low = 25, Close = 27, Volume = 2000342 });
             * Add(new GUICandleObject { Date = new DateTime(2008, 8, 7), Open = 26, High = 27, Low = 23, Close = 25, Volume = 2003342 });
             * Add(new GUICandleObject { Date = new DateTime(2008, 8, 8), Open = 26, High = 26, Low = 24, Close = 26, Volume = 1000323 });
             * Add(new GUICandleObject { Date = new DateTime(2008, 8, 9), Open = 25, High = 25, Low = 24, Close = 24, Volume = 2040389 });
             *
             * Add(new GUICandleObject { Date = new DateTime(2008, 8, 10), Open = 23, High = 23, Low = 20, Close = 20, Volume = 2030341 });
             * */
            // CandleCollectionUpdate += new CandleCollecionUpdateDelegate(Dummy);
        }