public override RunResultClass getSetDataResult(string[] secCodes, DateTime dt) { RunResultClass ret = new RunResultClass(); MTable tab = new MTable(); // //MutliReturnValueGuidClass gd = assembly.CreateInstance(ct.FullName) as MutliReturnValueGuidClass; MutliReturnValueGuidClass gd = GuidBaseClass.CreateGuideInstance(GuildName) as MutliReturnValueGuidClass; //MACDGuidClass gd = new MACDGuidClass(MACDType.MACD); gd.cycle = this.cycle; gd.priceAdj = this.prcAdj; GuidBuilder_ForWD gb = null; for (int i = 0; i < ValueNames.Length; i++) { gd.ReturnValueName = ValueNames[i]; gb = new GuidBuilder_ForWD(w, gd); MTable tmp = gb.getRecords(secCodes, dt); tab.AddColumnByArray(ValueNames[i], tmp, GuildName); } ret.Notice.Success = true; ret.Result = tab; return(ret); }
public override RunResultClass GetSetBaseData(string[] secCodes, DateTime EndT, params object[] datapointnames) { RunResultClass ret = new RunResultClass(); BaseDataPointGuidClass gd = null; if (datapointnames.Length == 0) { gd = new BaseDataPointGuidClass(true); } else { gd = new BaseDataPointGuidClass(datapointnames); } GuidBuilder_ForWD gb = new GuidBuilder_ForWD(w, gd); gd.cycle = this.cycle; gd.priceAdj = this.prcAdj; ret.Result = gb.getRecords(secCodes, EndT); ret.Result.AddColumnByArray <DateTime>("DateTime", EndT); ret.Notice.Success = true; return(ret); }