public override RunResultClass getDateSerialResult(string secCode, DateTime begt, DateTime endt, params object[] DataPoints)
        {
            RunResultClass ret      = new RunResultClass();
            MTable         tab      = new MTable();
            Type           t        = Type.GetType(GuildName + "GuidClass");
            Assembly       assembly = Assembly.GetExecutingAssembly();
            //MutliReturnValueGuidClass gd = assembly.CreateInstance(t.Name) as MutliReturnValueGuidClass;
            MutliReturnValueGuidClass gd = GuidBaseClass.CreateGuideInstance(GuildName) as MutliReturnValueGuidClass;

            //MACDGuidClass gd = new MACDGuidClass(MACDType.MACD);
            gd.cycle    = this.cycle;
            gd.priceAdj = this.prcAdj;
            DateSerialGuidBuilder_ForMG gb = null;

            for (int i = 0; i < ValueNames.Length; i++)
            {
                gd.ReturnValueName = ValueNames[i];
                gb = new DateSerialGuidBuilder_ForMG(w, gd);
                MTable tmp = gb.getRecords(secCode, begt, endt);
                tab.AddColumnByArray(ValueNames[i], tmp, GuildName);
            }
            ret.Notice.Success = true;
            ret.Result         = tab;
            return(ret);
        }
Пример #2
0
        public override RunResultClass getDateSerialResult(string secCode, DateTime begt, DateTime endt, params object[] DataPoints)
        {
            RunResultClass         ret = new RunResultClass();
            MTable                 tab = new MTable();
            BaseDataPointGuidClass gd;

            if (DataPoints.Length > 0)
            {
                gd = new BaseDataPointGuidClass(DataPoints);
            }
            else
            {
                gd = new BaseDataPointGuidClass(true);
            }
            gd.cycle    = this.cycle;
            gd.priceAdj = this.prcAdj;
            DateSerialGuidBuilder_ForMG gb = new DateSerialGuidBuilder_ForMG(w, gd);

            tab                = gb.getRecords(secCode, begt, endt);
            ret.Result         = tab;
            ret.Notice.Success = true;
            return(ret);
        }